forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We should maintain the original Content-Type header on 303 HTTP redirect
https://bugs.webkit.org/show_bug.cgi?id=242969 Reviewed by Darin Adler and Alex Christensen. Maintain the original Content-Type header on 303 HTTP redirect, like we do for the 307 and 308 ones. This aligns our behavior with both Blink and Gecko. * LayoutTests/imported/w3c/web-platform-tests/xhr/send-redirect-expected.txt: * Source/WebCore/platform/network/mac/ResourceHandleMac.mm: (WebCore::ResourceHandle::willSendRequest): * Source/WebKit/NetworkProcess/cocoa/NetworkDataTaskCocoa.mm: (WebKit::NetworkDataTaskCocoa::willPerformHTTPRedirection): Canonical link: https://commits.webkit.org/252713@main
- Loading branch information
Showing
3 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
LayoutTests/imported/w3c/web-platform-tests/xhr/send-redirect-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
PASS XMLHttpRequest: send() - Redirects (basics) (301) | ||
PASS XMLHttpRequest: send() - Redirects (basics) (302) | ||
FAIL XMLHttpRequest: send() - Redirects (basics) (303) assert_equals: expected "application/x-pony" but got "NO" | ||
PASS XMLHttpRequest: send() - Redirects (basics) (303) | ||
PASS XMLHttpRequest: send() - Redirects (basics) (307) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters