chenBright commented on issue #2575:
URL: https://github.com/apache/brpc/issues/2575#issuecomment-2004305249

   [RFC-7230 Field Order](https://tools.ietf.org/html/rfc7230#section-3.2.2)
   In practice, the "Set-Cookie" header field ([RFC6265]) often
   appears multiple times in a response message and does not use the
   list syntax, violating the above requirements on multiple header
   fields with the same name. Since it cannot be combined into a
   single field-value, recipients ought to handle "Set-Cookie" as a
   special case while processing header fields. (See Appendix A.2.3
   of [Kri2001] for details.)
   
   [RFC-6265 Overview](https://tools.ietf.org/html/rfc6265#section-3)
   Origin servers SHOULD NOT fold multiple Set-Cookie header fields into a 
single header field.
   The usual mechanism for folding HTTP headers fields (i.e., as defined in 
[RFC2616]) might
   change the semantics of the Set-Cookie header field because the %x2C (",") 
character is
   used by Set-Cookie in a way that conflicts with such folding.
   
   根据HTTP标准定义,不能将多个Set-Cookie合并到一个header。bRPC的处理方式有问题,需要针对Set-Cookie进行特殊处理。
   
   另外,多个Cookie之间不能使用`,`分隔,应该要用`;`分隔。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to