Skip to content

modify http parser by rfc2616#201

Open
gotojyh wants to merge 2 commits intomonkey:masterfrom
gotojyh:master
Open

modify http parser by rfc2616#201
gotojyh wants to merge 2 commits intomonkey:masterfrom
gotojyh:master

Conversation

@gotojyh
Copy link
Copy Markdown

@gotojyh gotojyh commented Apr 14, 2015

modify http parser

@gotojyh
Copy link
Copy Markdown
Author

gotojyh commented Apr 14, 2015

I found this data in one package on Android Chrome;
cookie:\r\n
refer:\r\n
so I look up RFC 2616,found that the length of header content may be zero.so I think the package is right.

RFC 2616 Page 32 [http://www.ietf.org/rfc/rfc2616.txt]


   message-header = field-name ":" [ field-value ]
   field-name     = token
   field-value    = *( field-content | LWS )
   field-content  = <the OCTETs making up the field-value
                    and consisting of either *TEXT or combinations
                    of token, separators, and quoted-string>

modify size_t to ssize_t

Signed-off-by: jiangyonghang <[email protected]>
@gotojyh gotojyh changed the title modify mk_connection.c bytes modify http parser by rfc2616 Apr 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant