Bug 1558915 - Use infallible nsIURI::SchemeIs in netwerk/. r=baku
Sorry I had some problems figuring out who can review netwerk/. Most people seem to be on PTO. Differential Revision: https://phabricator.services.mozilla.com/D41175
This commit is contained in:
@@ -3075,9 +3075,7 @@ WebSocketChannel::AsyncOnChannelRedirect(
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// newuri is expected to be http or https
|
||||
bool newuriIsHttps = false;
|
||||
rv = newuri->SchemeIs("https", &newuriIsHttps);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
bool newuriIsHttps = newuri->SchemeIs("https");
|
||||
|
||||
if (!mAutoFollowRedirects) {
|
||||
// Even if redirects configured off, still allow them for HTTP Strict
|
||||
|
||||
Reference in New Issue
Block a user