8 years, 2 months ago.

parsing http response fails - 'key' and 'value' buffers too small

Hi, I'm using your HTTPClient lib in my library and it's been working great! I recently ran into an issue while testing against http://httpbin.org. In order to fix a bug, their server started sending back "Access-Control-Allow-Credentials: true" in the Response Headers. The length of the key in that header is 33 bytes, which is larger than the size of the 'key' buffer (32 bytes). This causes parsing of the reply to fail even though the response is valid.

This could be an issue anytime a server sends back headers with longer key names. Could you update the lib to accommodate larger key and value sizes?

-Mike

Question relating to:

A HTTP Client for the mbed networking libraries
Be the first to answer this question.