| Summary: | [PATCH] libfetch: doesn't support HTTP 307 redirects | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Roman Bogorodskiy <novel> | ||||
| Component: | bin | Assignee: | Dag-Erling Smørgrav <des> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | CC: | brd | ||||
| Priority: | --- | Keywords: | patch | ||||
| Version: | CURRENT | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Roman Bogorodskiy
2016-05-16 10:24:11 UTC
FWIW, there's a differential revision also: https://reviews.freebsd.org/D6167. A commit references this bug: Author: des Date: Tue May 31 08:27:40 UTC 2016 New revision: 301027 URL: https://svnweb.freebsd.org/changeset/base/301027 Log: r169386 (PR 112515) was incomplete: it treated 307 as an error except in verbose mode, and did not handle 308 at all. r241840 (PR 172451) added support for 308, but with the same bug. Correctly handle both by recognizing them as redirects in all places where we check the HTTP result code. PR: 112515 173451 209546 Submitted by: novel@ MFC after: 1 week Changes: head/lib/libfetch/http.c Please reopen if this is still an issue. A commit references this bug: Author: des Date: Tue Jan 10 08:12:56 UTC 2017 New revision: 311864 URL: https://svnweb.freebsd.org/changeset/base/311864 Log: MFH (r301027): fix 307 / 308 redirects MFH (r310823): fix multi-line CONNECT responses PR: 112515 173451 194483 209546 Changes: _U stable/10/ stable/10/lib/libfetch/http.c |