Backed out changeset 901f0df29f8f (bug 1337543)
This commit is contained in:
@@ -671,7 +671,6 @@ private:
|
||||
RefPtr<mozilla::dom::InternalResponse> ir =
|
||||
new mozilla::dom::InternalResponse(200, NS_LITERAL_CSTRING("OK"));
|
||||
ir->SetBody(loadInfo.mCacheReadStream, InternalResponse::UNKNOWN_BODY_SIZE);
|
||||
|
||||
// Drop our reference to the stream now that we've passed it along, so it
|
||||
// doesn't hang around once the cache is done with it and keep data alive.
|
||||
loadInfo.mCacheReadStream = nullptr;
|
||||
@@ -700,7 +699,6 @@ private:
|
||||
}
|
||||
|
||||
ir->SetPrincipalInfo(Move(principalInfo));
|
||||
ir->Headers()->FillResponseHeaders(loadInfo.mChannel);
|
||||
|
||||
RefPtr<mozilla::dom::Response> response =
|
||||
new mozilla::dom::Response(mCacheCreator->Global(), ir);
|
||||
|
||||
Reference in New Issue
Block a user