diff options
author | Julian Andres Klode <jak@debian.org> | 2020-08-04 10:34:38 +0000 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2020-08-04 10:34:38 +0000 |
commit | 7d222636954ec95382149e31b314e9828ba05a2e (patch) | |
tree | dcdde8d6c88e0f76d6ced0a528b092eee99b13d8 | |
parent | 63c0657ea54c9268bc1855d5eac92bc636532bd6 (diff) | |
parent | 27d36318b98f3a070fb24557ce691718ef4eec34 (diff) |
Merge branch 'pu/http-fixes-2' into 'master'
Pu/http fixes 2
See merge request apt-team/apt!125
-rw-r--r-- | methods/http.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/methods/http.cc b/methods/http.cc index 9cfc91330..77348d760 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -845,7 +845,8 @@ ResultState HttpServerState::Go(bool ToFile, RequestState &Req) } // Send data to the file - if (FileFD->Fd() != -1 && FD_ISSET(FileFD->Fd(), &wfds)) + if (FileFD->Fd() != -1 && ((In.WriteSpace() == true && ToFile == true) || + FD_ISSET(FileFD->Fd(), &wfds))) { if (In.Write(FileFD) == false) { |