Bug 249209 - [Curl] Only redirect when known redirect status codes
Summary: [Curl] Only redirect when known redirect status codes
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-12 22:31 PST by Kenji Shukuwa
Modified: 2022-12-14 01:24 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenji Shukuwa 2022-12-12 22:31:54 PST
By specification, if the status code is 3xx and there is a location header, you can redirect automatically.
The current curl port is redirecting according to this specification.

On the other hand, WebKit limits redirect status codes to known code. Inconsistent redirect code
within WebKit can lead to unexpected behavior.
Comment 1 Kenji Shukuwa 2022-12-12 23:21:22 PST
Pull request: https://github.com/WebKit/WebKit/pull/7538