且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

设置多个具有相同名称的HTTP标头?

更新时间:2023-02-25 15:09:27

由于重复的标题可能会导致各种网络出现问题 - 服务器和API(无论规范如何),我怀疑是否有任何通用用例,这是***实践。当然,这并不是说有人在某个地方没有这样做。

Since duplicate headers can cause issues with various web-servers and APIs (regardless of what the spec says), I doubt there is any general purpose use case where this is best practice. That's not to say someone somewhere isn't doing it, of course.