mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-24 08:07:30 +09:00
Issue #2852 - Follow-up: Add comment and fix formatting.
This commit is contained in:
parent
3a121f34c8
commit
1bcdad3ef1
1 changed files with 7 additions and 7 deletions
|
|
@ -620,22 +620,22 @@ nsHttpResponseHead::ParseHeaderLine_locked(const nsACString &line, bool original
|
||||||
// permit only a single value here.
|
// permit only a single value here.
|
||||||
if (nsHttp::ParseInt64(val.get(), &ignored, &len)) {
|
if (nsHttp::ParseInt64(val.get(), &ignored, &len)) {
|
||||||
mContentLength = len;
|
mContentLength = len;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
// If this is a negative content length then just ignore it
|
// If this is a negative content length then just ignore it
|
||||||
LOG(("invalid content-length! %s\n", val.get()));
|
LOG(("invalid content-length! %s\n", val.get()));
|
||||||
}
|
}
|
||||||
}
|
} else if (hdr == nsHttp::Content_Type) {
|
||||||
else if (hdr == nsHttp::Content_Type) {
|
|
||||||
LOG(("ParseContentType [type=%s]\n", val.get()));
|
LOG(("ParseContentType [type=%s]\n", val.get()));
|
||||||
bool dummy;
|
bool dummy;
|
||||||
net_ParseContentType(val,
|
net_ParseContentType(val,
|
||||||
mContentType, mContentCharset, &dummy);
|
mContentType, mContentCharset, &dummy);
|
||||||
}
|
} else if (hdr == nsHttp::Cache_Control) {
|
||||||
else if (hdr == nsHttp::Cache_Control)
|
// Re-parse merged header in its entirety. See Issue #2852
|
||||||
ParseCacheControl(mHeaders.PeekHeader(hdr));
|
ParseCacheControl(mHeaders.PeekHeader(hdr));
|
||||||
else if (hdr == nsHttp::Pragma)
|
} else if (hdr == nsHttp::Pragma) {
|
||||||
ParsePragma(val.get());
|
ParsePragma(val.get());
|
||||||
|
}
|
||||||
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue