Skip to content

Commit

Permalink
Fix TestWebKitAPI.WKNavigation.Multiple303Redirects in debug builds
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=260096
rdar://113772047

Reviewed by Chris Dumez.

It was asserting in statusText because it was using status code 303 which hadn't been added yet.

* Tools/TestWebKitAPI/cocoa/HTTPServer.mm:
(TestWebKitAPI::statusText):

Canonical link: https://commits.webkit.org/266836@main
  • Loading branch information
achristensen07 committed Aug 11, 2023
1 parent e70a63f commit f6813e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tools/TestWebKitAPI/cocoa/HTTPServer.mm
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@ static ASCIILiteral statusText(unsigned statusCode)
return "Moved Permanently"_s;
case 302:
return "Found"_s;
case 303:
return "See Other"_s;
case 404:
return "Not Found"_s;
case 503:
Expand Down

0 comments on commit f6813e6

Please sign in to comment.