equal
deleted
inserted
replaced
276 |
276 |
277 # will the connection close at the end of the response? |
277 # will the connection close at the end of the response? |
278 res.will_close = res._check_close() |
278 res.will_close = res._check_close() |
279 |
279 |
280 # do we have a Content-Length? |
280 # do we have a Content-Length? |
281 # NOTE: RFC 2616, S4.4, #3 says we ignore this if tr_enc is "chunked" |
281 # NOTE: RFC 2616, section 4.4, #3 says we ignore this if |
|
282 # transfer-encoding is "chunked" |
282 length = res.msg.getheader('content-length') |
283 length = res.msg.getheader('content-length') |
283 if length and not res.chunked: |
284 if length and not res.chunked: |
284 try: |
285 try: |
285 res.length = int(length) |
286 res.length = int(length) |
286 except ValueError: |
287 except ValueError: |