mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-07 07:47:30 +09:00
[DOM] Ignore status 206 and vary header checking for opaque responses in the Cache API.
This commit is contained in:
parent
eb44f633ee
commit
fe37319996
1 changed files with 1 additions and 1 deletions
2
dom/cache/TypeUtils.cpp
vendored
2
dom/cache/TypeUtils.cpp
vendored
|
|
@ -190,7 +190,7 @@ TypeUtils::ToCacheResponseWithoutBody(CacheResponse& aOut,
|
||||||
aOut.statusText() = aIn.GetUnfilteredStatusText();
|
aOut.statusText() = aIn.GetUnfilteredStatusText();
|
||||||
RefPtr<InternalHeaders> headers = aIn.UnfilteredHeaders();
|
RefPtr<InternalHeaders> headers = aIn.UnfilteredHeaders();
|
||||||
MOZ_DIAGNOSTIC_ASSERT(headers);
|
MOZ_DIAGNOSTIC_ASSERT(headers);
|
||||||
if (HasVaryStar(headers)) {
|
if (aIn.Type() != ResponseType::Opaque && HasVaryStar(headers)) {
|
||||||
aRv.ThrowTypeError<MSG_RESPONSE_HAS_VARY_STAR>();
|
aRv.ThrowTypeError<MSG_RESPONSE_HAS_VARY_STAR>();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue