Bug 1154426 - Ignore gzip problems if only soft-enforcing. r=mcmanus

This commit is contained in:
Daniel Stenberg 2015-04-22 17:13:57 -07:00
parent 5b2b80e960
commit c45d6ca104
2 changed files with 3 additions and 2 deletions

View File

@ -40,8 +40,7 @@ nsHTTPCompressConv::nsHTTPCompressConv()
{
if (NS_IsMainThread()) {
mFailUncleanStops =
(Preferences::GetBool("network.http.enforce-framing.soft", false) ||
Preferences::GetBool("network.http.enforce-framing.http", false));
Preferences::GetBool("network.http.enforce-framing.http", false);
} else {
mFailUncleanStops = false;
}

View File

@ -218,6 +218,8 @@ function handler4(metadata, response)
function completeTest4(request, data, ctx)
{
do_check_eq(request.status, Components.results.NS_OK);
prefs.setBoolPref("network.http.enforce-framing.http1", true);
run_gzip_test(99);
}