mercurial/url.py
changeset 17428 72803c8edaa4
parent 17424 e7cfe3587ea4
child 18176 ffec6d0a5ed6
equal deleted inserted replaced
17427:57c6c24b9bc4 17428:72803c8edaa4
   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: