Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

quick fix. s/transfer-encoding/content-encoding

  • Loading branch information...
commit 15ed793dc339163456d1159da1a57435593b2edd 1 parent d2b91c1
Benoit Chesneau authored May 03, 2011
2  http_parser/__init__.py
@@ -3,5 +3,5 @@
3 3
 # This file is part of http_parser released under the MIT license. 
4 4
 # See the NOTICE for more information.
5 5
 
6  
-version_info = (0, 3, 1)
  6
+version_info = (0, 3, 2)
7 7
 __version__ = ".".join(map(str, version_info))
14  http_parser/parser.c
... ...
@@ -1,4 +1,4 @@
1  
-/* Generated by Cython 0.14.1 on Tue May  3 21:12:15 2011 */
  1
+/* Generated by Cython 0.14.1 on Tue May  3 21:54:48 2011 */
2 2
 
3 3
 #define PY_SSIZE_T_CLEAN
4 4
 #include "Python.h"
@@ -556,7 +556,7 @@ static PyObject *__pyx_builtin_map;
556 556
 static char __pyx_k_1[] = "";
557 557
 static char __pyx_k_2[] = "HTTP_%s";
558 558
 static char __pyx_k_3[] = "-";
559  
-static char __pyx_k_5[] = "transfer-encoding";
  559
+static char __pyx_k_5[] = "content-encoding";
560 560
 static char __pyx_k_11[] = "HTTP_X_FORWARDED_PROTOCOL";
561 561
 static char __pyx_k_13[] = "wsgi.url_scheme";
562 562
 static char __pyx_k_14[] = "HTTP_X_FORWARDED_SSL";
@@ -1448,7 +1448,7 @@ static  int __pyx_f_11http_parser_6parser_on_headers_complete_cb(struct http_par
1448 1448
  *     res.headers_complete = True
1449 1449
  * 
1450 1450
  *     if res.decompress:             # <<<<<<<<<<<<<<
1451  
- *         encoding = res.headers.get('transfer-encoding')
  1451
+ *         encoding = res.headers.get('content-encoding')
1452 1452
  *         if encoding == 'gzip':
1453 1453
  */
1454 1454
   __pyx_t_1 = PyObject_GetAttr(__pyx_v_res, __pyx_n_s__decompress); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
@@ -1460,7 +1460,7 @@ static  int __pyx_f_11http_parser_6parser_on_headers_complete_cb(struct http_par
1460 1460
     /* "http_parser/parser.pyx":130
1461 1461
  * 
1462 1462
  *     if res.decompress:
1463  
- *         encoding = res.headers.get('transfer-encoding')             # <<<<<<<<<<<<<<
  1463
+ *         encoding = res.headers.get('content-encoding')             # <<<<<<<<<<<<<<
1464 1464
  *         if encoding == 'gzip':
1465 1465
  *             res.decompressobj = zlib.decompressobj(16+zlib.MAX_WBITS)
1466 1466
  */
@@ -1478,7 +1478,7 @@ static  int __pyx_f_11http_parser_6parser_on_headers_complete_cb(struct http_par
1478 1478
 
1479 1479
     /* "http_parser/parser.pyx":131
1480 1480
  *     if res.decompress:
1481  
- *         encoding = res.headers.get('transfer-encoding')
  1481
+ *         encoding = res.headers.get('content-encoding')
1482 1482
  *         if encoding == 'gzip':             # <<<<<<<<<<<<<<
1483 1483
  *             res.decompressobj = zlib.decompressobj(16+zlib.MAX_WBITS)
1484 1484
  *         elif encoding == 'deflate':
@@ -1490,7 +1490,7 @@ static  int __pyx_f_11http_parser_6parser_on_headers_complete_cb(struct http_par
1490 1490
     if (__pyx_t_2) {
1491 1491
 
1492 1492
       /* "http_parser/parser.pyx":132
1493  
- *         encoding = res.headers.get('transfer-encoding')
  1493
+ *         encoding = res.headers.get('content-encoding')
1494 1494
  *         if encoding == 'gzip':
1495 1495
  *             res.decompressobj = zlib.decompressobj(16+zlib.MAX_WBITS)             # <<<<<<<<<<<<<<
1496 1496
  *         elif encoding == 'deflate':
@@ -4163,7 +4163,7 @@ static int __Pyx_InitCachedConstants(void) {
4163 4163
   /* "http_parser/parser.pyx":130
4164 4164
  * 
4165 4165
  *     if res.decompress:
4166  
- *         encoding = res.headers.get('transfer-encoding')             # <<<<<<<<<<<<<<
  4166
+ *         encoding = res.headers.get('content-encoding')             # <<<<<<<<<<<<<<
4167 4167
  *         if encoding == 'gzip':
4168 4168
  *             res.decompressobj = zlib.decompressobj(16+zlib.MAX_WBITS)
4169 4169
  */
2  http_parser/parser.pyx
@@ -127,7 +127,7 @@ cdef int on_headers_complete_cb(http_parser *parser):
127 127
     res.headers_complete = True
128 128
 
129 129
     if res.decompress:
130  
-        encoding = res.headers.get('transfer-encoding')
  130
+        encoding = res.headers.get('content-encoding')
131 131
         if encoding == 'gzip':
132 132
             res.decompressobj = zlib.decompressobj(16+zlib.MAX_WBITS)
133 133
         elif encoding == 'deflate':

0 notes on commit 15ed793

Please sign in to comment.
Something went wrong with that request. Please try again.