xbps/lib/fetch
Érico Rolim 9c5443d134
fetch/http: add missing case when treating status code.
The HTTP_REDIRECT() macro already included this case, but the
switch-case with the return value of http_get_reply(conn) didn't. This
made it so that a server returning HTTP_TEMP_REDIRECT (307) would
generate a failure, unless libfetch was used in verbose mode, in which
case the headers would be parsed (in order to report errors), then the
'Location' header would be found and a new connection would be made.

Fixes #348
2021-02-04 23:14:34 +01:00
..
common.c Revert "Move all external code to lib/external." 2021-02-04 22:42:57 +01:00
common.h __UNCONST: use uintptr_t instead of unsigned long. 2021-02-04 23:04:59 +01:00
errlist.sh Revert "Move all external code to lib/external." 2021-02-04 22:42:57 +01:00
fetch.c Revert "Move all external code to lib/external." 2021-02-04 22:42:57 +01:00
fetch.h Revert "Move all external code to lib/external." 2021-02-04 22:42:57 +01:00
file.c Revert "Move all external code to lib/external." 2021-02-04 22:42:57 +01:00
ftp.c Revert "Move all external code to lib/external." 2021-02-04 22:42:57 +01:00
ftp.errors Revert "Move all external code to lib/external." 2021-02-04 22:42:57 +01:00
http.c fetch/http: add missing case when treating status code. 2021-02-04 23:14:34 +01:00
http.errors Revert "Move all external code to lib/external." 2021-02-04 22:42:57 +01:00