]> git.saurik.com Git - apt.git/commit
http: don't hang on redirect with length + connection close
authorDavid Kalnischkies <david@kalnischkies.de>
Wed, 15 Jun 2016 10:45:07 +0000 (12:45 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Wed, 15 Jun 2016 11:38:51 +0000 (13:38 +0200)
commit99968cf75b46210bded1662d34c4c2b0ef07be04
tree1684524a0513b6db39dcbe4e264ba70ea990f06e
parent90f2a7a0f66cfc259883490a5fcf40f7d0696cfe
http: don't hang on redirect with length + connection close

Most servers who close the connection do not send a content-length as
this is redundant information usually, but some might and while testing
with our server and with 'aptwebserver::response-header::Connection' set
to 'close' I noticed that http hangs after a redirect in such cases, so
if we have the information, just use it instead of discarding it.
methods/http.cc