Backed out changeset 901f0df29f8f (bug 1337543)

This commit is contained in:
Sebastian Hengst
2017-02-13 18:59:44 +01:00
parent 5bdf6afef2
commit eb254c046e
2 changed files with 4 additions and 19 deletions

View File

@@ -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);