Permalink
Browse files

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

  • Loading branch information...
1 parent d2b91c1 commit 15ed793dc339163456d1159da1a57435593b2edd @benoitc committed May 3, 2011
Showing with 9 additions and 9 deletions.
  1. +1 −1 http_parser/__init__.py
  2. +7 −7 http_parser/parser.c
  3. +1 −1 http_parser/parser.pyx
@@ -3,5 +3,5 @@
# This file is part of http_parser released under the MIT license.
# See the NOTICE for more information.
-version_info = (0, 3, 1)
+version_info = (0, 3, 2)
__version__ = ".".join(map(str, version_info))
View
@@ -1,4 +1,4 @@
-/* Generated by Cython 0.14.1 on Tue May 3 21:12:15 2011 */
+/* Generated by Cython 0.14.1 on Tue May 3 21:54:48 2011 */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
@@ -556,7 +556,7 @@ static PyObject *__pyx_builtin_map;
static char __pyx_k_1[] = "";
static char __pyx_k_2[] = "HTTP_%s";
static char __pyx_k_3[] = "-";
-static char __pyx_k_5[] = "transfer-encoding";
+static char __pyx_k_5[] = "content-encoding";
static char __pyx_k_11[] = "HTTP_X_FORWARDED_PROTOCOL";
static char __pyx_k_13[] = "wsgi.url_scheme";
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
* res.headers_complete = True
*
* if res.decompress: # <<<<<<<<<<<<<<
- * encoding = res.headers.get('transfer-encoding')
+ * encoding = res.headers.get('content-encoding')
* if encoding == 'gzip':
*/
__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
/* "http_parser/parser.pyx":130
*
* if res.decompress:
- * encoding = res.headers.get('transfer-encoding') # <<<<<<<<<<<<<<
+ * encoding = res.headers.get('content-encoding') # <<<<<<<<<<<<<<
* if encoding == 'gzip':
* res.decompressobj = zlib.decompressobj(16+zlib.MAX_WBITS)
*/
@@ -1478,7 +1478,7 @@ static int __pyx_f_11http_parser_6parser_on_headers_complete_cb(struct http_par
/* "http_parser/parser.pyx":131
* if res.decompress:
- * encoding = res.headers.get('transfer-encoding')
+ * encoding = res.headers.get('content-encoding')
* if encoding == 'gzip': # <<<<<<<<<<<<<<
* res.decompressobj = zlib.decompressobj(16+zlib.MAX_WBITS)
* elif encoding == 'deflate':
@@ -1490,7 +1490,7 @@ static int __pyx_f_11http_parser_6parser_on_headers_complete_cb(struct http_par
if (__pyx_t_2) {
/* "http_parser/parser.pyx":132
- * encoding = res.headers.get('transfer-encoding')
+ * encoding = res.headers.get('content-encoding')
* if encoding == 'gzip':
* res.decompressobj = zlib.decompressobj(16+zlib.MAX_WBITS) # <<<<<<<<<<<<<<
* elif encoding == 'deflate':
@@ -4163,7 +4163,7 @@ static int __Pyx_InitCachedConstants(void) {
/* "http_parser/parser.pyx":130
*
* if res.decompress:
- * encoding = res.headers.get('transfer-encoding') # <<<<<<<<<<<<<<
+ * encoding = res.headers.get('content-encoding') # <<<<<<<<<<<<<<
* if encoding == 'gzip':
* res.decompressobj = zlib.decompressobj(16+zlib.MAX_WBITS)
*/
@@ -127,7 +127,7 @@ cdef int on_headers_complete_cb(http_parser *parser):
res.headers_complete = True
if res.decompress:
- encoding = res.headers.get('transfer-encoding')
+ encoding = res.headers.get('content-encoding')
if encoding == 'gzip':
res.decompressobj = zlib.decompressobj(16+zlib.MAX_WBITS)
elif encoding == 'deflate':

0 comments on commit 15ed793

Please sign in to comment.