]> git.saurik.com Git - apt.git/commit - methods/server.cc
http: clear content before reporting the failure
authorEdgar Fuß <ef@math.uni-bonn.de>
Fri, 11 Nov 2016 09:20:23 +0000 (10:20 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Fri, 11 Nov 2016 22:39:50 +0000 (23:39 +0100)
commit324bb34d77a43d1be411c402b2e11f588194439a
tree095e233d196b835dc0e9adfb89e1dc5396ac96aa
parente2c8c825a5470e33c25d00e07de188d0e03922c8
http: clear content before reporting the failure

[Comment from commiter:] I have the feeling that the issue itself is
fixed for a while already as nowadays we have testcases involving a
webserver closing the connection on error (look for "closeOnError") and
no even remotely recent reports about it, but moving the content
clearance above the failure report is a valid change and shouldn't hurt.

Closes: #465572
methods/server.cc