summaryrefslogtreecommitdiff
path: root/methods/http_main.cc
AgeCommit message (Collapse)AuthorFilesLines
2017-07-12Reformat and sort all includes with clang-formatJulian Andres Klode1-1/+1
This makes it easier to see which headers includes what. The changes were done by running git grep -l '#\s*include' \ | grep -E '.(cc|h)$' \ | xargs sed -i -E 's/(^\s*)#(\s*)include/\1#\2 include/' To modify all include lines by adding a space, and then running ./git-clang-format.sh.
2017-06-28Fix https->http redirect issuesDavid Kalnischkies1-1/+1
Gbp-Dch: ignore
2016-08-10implement generic config fallback for methodsDavid Kalnischkies1-3/+5
The https method implemented for a long while now a hardcoded fallback to the same options in http, which, while it works, is rather inflexible if we want to allow the methods to use another name to change their behavior slightly, like apt-transport-tor does to https – most of the diff being s#https#tor#g which then fails to do the full circle fallthrough tor -> https -> http for https sources. With this config infrastructure this could be implemented now.
2016-05-28use std::locale::global instead of setlocaleDavid Kalnischkies1-5/+1
We use a wild mixture of C and C++ ways of generating output, so having a consistent world-view in both styles sounds like a good idea and should help in preventing regressions.
2014-10-13Fix backward compatiblity of the new pkgAcquireMethod::DropPrivsOrDie()Michael Vogt1-1/+0
Do not drop privileges in the methods when using a older version of libapt that does not support the chown magic in partial/ yet. To do this DropPrivileges() now will ignore a empty Apt::Sandbox::User. Cleanup all hardcoded _apt along the way.
2014-09-24releasing package apt version 1.1~exp3Michael Vogt1-0/+1
2014-09-24methods: Fail if we cannot drop privilegesJulian Andres Klode1-2/+2
2014-09-24Drop Privileges to "Debian-apt" in most acquire methodsMichael Vogt1-1/+3
Add a new "Debian-apt" user that owns the /var/lib/apt/lists and /var/cache/apt/archive directories. The methods http, https, ftp, gpgv, gzip switch to this user when they start. Thanks to Julian and "ioerror" and tors "switch_id()" code.
2014-03-13cleanup headers and especially #includes everywhereDavid Kalnischkies1-5/+0
Beside being a bit cleaner it hopefully also resolves oddball problems I have with high levels of parallel jobs. Git-Dch: Ignore Reported-By: iwyu (include-what-you-use)
2011-09-13reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies1-0/+2
2009-07-14* apt-pkg/acquire-worker.cc:Michael Vogt1-0/+5
- show error details of failed methods * apt-pkg/contrib/fileutl.cc: - if a process aborts with signal, show signal number * methods/http.cc: - ignore SIGPIPE, we deal with EPIPE from write in HttpMethod::ServerDie() (LP: #385144)
2006-11-29* prototype of mirror method addedMichael Vogt1-0/+15