erikdubbelboer / fasthttp

This fork has been deprecated!
MIT License
50 stars 12 forks source link

whitespace after http chunk-size #34

Closed digidis closed 6 years ago

digidis commented 6 years ago

There seems to be servers/load balancers that insert one (or more?) whitespaces between the chunk-size number and \r\n. Most clients seems to accept this as I understand it, but fasthttp is more strict and fails. To fix it extra whitespaces needs to be thrown away in parseChunkSize()

erikdubbelboer commented 6 years ago

Fixed in https://github.com/erikdubbelboer/fasthttp/commit/29cd5a776f5ece5b2b9e5fd74858aa1b63435056

digidis commented 6 years ago

Great!