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:
MahakBansal
2020-03-17 11:22:10 +00:00
parent 1f3121ec91
commit 29b5b02a90

View File

@@ -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;