Skip to content

Commit abc5ee3

Browse files
Relax user agent validation
We need to configure UA for some apps that don't pass isValidUserAgentHeaderValue check, but it is still a valid header value.
1 parent ae62fcc commit abc5ee3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/WebKit/UIProcess/API/glib/WebKitSettings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3147,7 +3147,7 @@ void webkit_settings_set_user_agent(WebKitSettings* settings, const char* userAg
31473147
String userAgentString;
31483148
if (userAgent && *userAgent) {
31493149
userAgentString = String::fromUTF8(userAgent);
3150-
g_return_if_fail(WebCore::isValidUserAgentHeaderValue(userAgentString));
3150+
g_return_if_fail(WebCore::isValidHTTPHeaderValue(userAgentString));
31513151
} else
31523152
userAgentString = WebCore::standardUserAgent(emptyString());
31533153

0 commit comments

Comments
 (0)