nekipelov / httpparser

HTTP request, response and urls parser
MIT License
117 stars 35 forks source link

Swap 'sizeof' by 'strlen' in the request and response examples #2

Closed Icaro-Lima closed 4 years ago

Icaro-Lima commented 5 years ago

Fixes the request and response examples. As it stands, a '\0' character is being unnecessarily added to the parser, this caused messages cut in the middle of the headers to be treated as an error.

This probably solves this problem: #1