diff --git a/netwerk/protocol/http/nsHttpResponseHead.cpp b/netwerk/protocol/http/nsHttpResponseHead.cpp index 5e119ba437..6bb328f823 100644 --- a/netwerk/protocol/http/nsHttpResponseHead.cpp +++ b/netwerk/protocol/http/nsHttpResponseHead.cpp @@ -633,7 +633,7 @@ nsHttpResponseHead::ParseHeaderLine_locked(const nsACString &line, bool original mContentType, mContentCharset, &dummy); } else if (hdr == nsHttp::Cache_Control) - ParseCacheControl(val.get()); + ParseCacheControl(mHeaders.PeekHeader(hdr)); else if (hdr == nsHttp::Pragma) ParsePragma(val.get()); return NS_OK;