Closed elliothatch closed 1 year ago
The strange thing I'm seeing here is: "Transfer-Encoding": " chunked"
It seems like the headers include an extra space - so normally we'd have Transfer-Encoding:chunked
but this server sends Transfer-Encoding: chunked
But looking at the spec that's allowed - I've just pushed a change to Espruino which should ignore whitespace after the ':' and before the value
Hello! I am using Espruino on ESP32 to make HTTPS requests. This is working fine for short responses, but it isn't correctly handling long responses with "Transfer-Encoding: chunked"; the chunk size is being emitted in the first "data" event along with the beginning of the response, and then the response is closed.
I see that this issue has been addressed in the past: https://github.com/espruino/Espruino/issues/1458
I am building from source on the latest master with reduced jsVars because I was getting out of memory issues on the precompiled firmware. Commit: 9a9d8ec0c59c1373dea2e819b9794a79190b3d10
Sample code:
Output:
Thank you for your work on this project!