Decode chunked responses case insensitve headers (#2483)

This commit is contained in:
Nate Clark 2018-09-12 10:28:46 -04:00 committed by Marcel Stör
parent 91951051af
commit 0abb26170b
1 changed files with 1 additions and 1 deletions

View File

@ -414,7 +414,7 @@ static void ICACHE_FLASH_ATTR http_disconnect_callback( void * arg )
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);
char chunked_decode_buffer[body_size];