Commit 0abb2617 authored by Nate Clark's avatar Nate Clark Committed by Marcel Stör
Browse files

Decode chunked responses case insensitve headers (#2483)

parent 91951051
...@@ -414,7 +414,7 @@ static void ICACHE_FLASH_ATTR http_disconnect_callback( void * arg ) ...@@ -414,7 +414,7 @@ static void ICACHE_FLASH_ATTR http_disconnect_callback( void * arg )
body = body + 4; body = body + 4;
} }
if ( os_strstr( req->buffer, "Transfer-Encoding: chunked" ) ) if ( os_strstr( req->buffer, "Transfer-Encoding: chunked" ) || os_strstr( req->buffer, "transfer-encoding: chunked" ) )
{ {
int body_size = req->buffer_size - (body - req->buffer); int body_size = req->buffer_size - (body - req->buffer);
char chunked_decode_buffer[body_size]; char chunked_decode_buffer[body_size];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment