From fc793df53d7f864c401d0f9fc14c08c7c3bec196 Mon Sep 17 00:00:00 2001
From: Dragana Damjanovic
Date: Wed, 15 Feb 2017 20:38:59 -0500
Subject: [PATCH] Bug 1338876 - Read ww-auth properly. r=mcmanus
--HG--
extra : rebase_source : 61d54449f04d82ff58358315917558f276bba326
---
netwerk/protocol/http/nsHttpDigestAuth.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/netwerk/protocol/http/nsHttpDigestAuth.cpp b/netwerk/protocol/http/nsHttpDigestAuth.cpp
index 23aba0b87c07..235f391bc773 100644
--- a/netwerk/protocol/http/nsHttpDigestAuth.cpp
+++ b/netwerk/protocol/http/nsHttpDigestAuth.cpp
@@ -566,8 +566,8 @@ nsHttpDigestAuth::ParseChallenge(const char * challenge,
if (strlen(challenge) > 16000000) {
return NS_ERROR_INVALID_ARG;
}
-
- const char *p = challenge + 7; // first 7 characters are "Digest "
+
+ const char *p = challenge + 6; // first 6 characters are "Digest"
*stale = false;
*algorithm = ALGO_MD5; // default is MD5