Bug 1599373 - Checking for http proxy should compare only 4 characters.r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D66860
This commit is contained in:
@@ -1193,7 +1193,7 @@ const char* nsProtocolProxyService::ExtractProxyInfo(const char* start,
|
||||
const char* type = nullptr;
|
||||
switch (len) {
|
||||
case 4:
|
||||
if (PL_strncasecmp(start, kProxyType_HTTP, 5) == 0) {
|
||||
if (PL_strncasecmp(start, kProxyType_HTTP, 4) == 0) {
|
||||
type = kProxyType_HTTP;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user