summaryrefslogtreecommitdiff
path: root/cmdline/apt-helper.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2016-06-15 12:45:07 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2016-06-15 13:38:51 +0200
commit99968cf75b46210bded1662d34c4c2b0ef07be04 (patch)
tree1684524a0513b6db39dcbe4e264ba70ea990f06e /cmdline/apt-helper.cc
parent90f2a7a0f66cfc259883490a5fcf40f7d0696cfe (diff)
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.
Diffstat (limited to 'cmdline/apt-helper.cc')
0 files changed, 0 insertions, 0 deletions