Bug 249209

Summary: [Curl] Only redirect when known redirect status codes
Product: WebKit Reporter: Kenji Shukuwa <kenji.shukuwa>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: Hironori.Fujii
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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