Klaus Demo bjoern / 0560b40
Cleanup Jonas Haag 2 years ago
1 changed file(s) with 5 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
196196 }
197197
198198 PyList_SET_ITEM(request->headers, i, PyTuple_Pack(2, bytes_field, bytes_value));
199 Py_DECREF(tuple);
200
201 if(!strncasecmp(_Bytes_AS_DATA(bytes_field), "Content-Length", _Bytes_GET_SIZE(bytes_field)))
202 request->state.response_length_unknown = false;
203
199204 Py_DECREF(bytes_field);
200205 Py_DECREF(bytes_value);
201 Py_DECREF(tuple);
202
203 if(!strncasecmp(_Bytes_AS_DATA(bytes_field), "Content-Length", _Bytes_GET_SIZE(bytes_field)))
204 request->state.response_length_unknown = false;
205206 }
206207 return true;
207208