@@ -136,7 +136,7 @@ do { \
136
136
#define PROXY_CONNECTION "proxy-connection"
137
137
#define CONNECTION "connection"
138
138
#define CONTENT_LENGTH "content-length"
139
- #define TRANSFER_ENCODING "transfer-encoding "
139
+ #define TRANSFER_ENCODING "Transfer-Encoding "
140
140
#define UPGRADE "upgrade"
141
141
#define CHUNKED "chunked"
142
142
#define KEEP_ALIVE "keep-alive"
@@ -1311,7 +1311,7 @@ size_t http_parser_execute (http_parser *parser,
1311
1311
case h_matching_transfer_encoding :
1312
1312
parser -> index ++ ;
1313
1313
if (parser -> index > sizeof (TRANSFER_ENCODING )- 1
1314
- || c != TRANSFER_ENCODING [parser -> index ]) {
1314
+ || ch != TRANSFER_ENCODING [parser -> index ]) {
1315
1315
parser -> header_state = h_general ;
1316
1316
} else if (parser -> index == sizeof (TRANSFER_ENCODING )- 2 ) {
1317
1317
parser -> header_state = h_transfer_encoding ;
@@ -1493,7 +1493,7 @@ size_t http_parser_execute (http_parser *parser,
1493
1493
case h_matching_transfer_encoding_chunked :
1494
1494
parser -> index ++ ;
1495
1495
if (parser -> index > sizeof (CHUNKED )- 1
1496
- || c != CHUNKED [parser -> index ]) {
1496
+ || ch != CHUNKED [parser -> index ]) {
1497
1497
parser -> header_state = h_general ;
1498
1498
} else if (parser -> index == sizeof (CHUNKED )- 2 ) {
1499
1499
parser -> header_state = h_transfer_encoding_chunked ;
0 commit comments