mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 16:58:38 +09:00
Issue #2852 - Parse full cache-control headers.
This makes sure we parse the merged/stored version of `cache-control` instead of just the latest-received header. `ResponseHead::ParseHeaderLine_locked` parses each header as it comes in. It then updates its member variables based on that header. For `cache-control`, it's important to reparse the merged (updated) version of the header instead of the most recent one, otherwise we'll miss directives present in previously received headers. Resolves #2852
This commit is contained in:
parent
6e19656e11
commit
16164b3d38
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue