You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Bryan Call (JIRA)" <ji...@apache.org> on 2015/05/12 01:24:00 UTC

[jira] [Commented] (TS-3595) Cookie header split into multiple lines with H2

    [ https://issues.apache.org/jira/browse/TS-3595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14538861#comment-14538861 ] 

Bryan Call commented on TS-3595:
--------------------------------

The Cookie headers need to be concatenated.

https://tools.ietf.org/html/draft-ietf-httpbis-http2-17#section-8.1.2.5
{code}
If there are multiple Cookie header fields after
   decompression, these MUST be concatenated into a single octet string
   using the two octet delimiter of 0x3B, 0x20 (the ASCII string "; ")
   before being passed into a non-HTTP/2 context, such as an HTTP/1.1
   connection, or a generic HTTP server application.
{code}

> Cookie header split into multiple lines with H2
> -----------------------------------------------
>
>                 Key: TS-3595
>                 URL: https://issues.apache.org/jira/browse/TS-3595
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP/2
>            Reporter: Scott Beardsley
>             Fix For: 6.0.0
>
>
> I've noticed that the Cookie header is now split into multiple lines. I can't tell if this is a part of the HPACK spec but it is definitely different from the SPDY 3.1 TS implementation.
> [May 12 06:08:10.630] Server {0x2b387f285700} DEBUG: (http2_hpack_decode) Decoded field:  :authority: search.yahoo.com
> [May 12 06:08:10.630] Server {0x2b387f285700} DEBUG: (http2_hpack_decode) Decoded field:  :method: GET
> [May 12 06:08:10.630] Server {0x2b387f285700} DEBUG: (http2_hpack_decode) Decoded field:  :path: /
> [May 12 06:08:10.630] Server {0x2b387f285700} DEBUG: (http2_hpack_decode) Decoded field:  :scheme: https
> [May 12 06:08:10.630] Server {0x2b387f285700} DEBUG: (http2_hpack_decode) Decoded field:  Accept: */*
> [May 12 06:08:10.630] Server {0x2b387f285700} DEBUG: (http2_hpack_decode) Decoded field:  Accept-Encoding: gzip, deflate, sdch
> [May 12 06:08:10.630] Server {0x2b387f285700} DEBUG: (http2_hpack_decode) Decoded field:  Accept-Language: en-US,en;q=0.8,it-IT;q=0.6,it;q=0.4,ja;q=0.2
> [May 12 06:08:10.630] Server {0x2b387f285700} DEBUG: (http2_hpack_decode) Decoded field:  Cookie: AO=u=1&o=1
> [May 12 06:08:10.631] Server {0x2b387f285700} DEBUG: (http2_hpack_decode) Decoded field:  Cookie: B=abc123
> [May 12 06:08:10.631] Server {0x2b387f285700} DEBUG: (http2_hpack_decode) Decoded field:  Cookie: DSS=321321
> [May 12 06:08:10.631] Server {0x2b387f285700} DEBUG: (http2_hpack_decode) Decoded field:  User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)