Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1278)

Unified Diff: net/url_request/url_request_http_job.cc

Issue 2512263002: Pass raw response with Context-Encoding sdch if support is not configured. (Closed)
Patch Set: Fix net unittests. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/url_request/url_request_http_job.cc
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index 6934c78006ce18b4cebbc351cbadcdc51345e17d..5f2fd91d6cc266ec923c49e6dad4e3191c255d51 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -1071,6 +1071,9 @@ std::unique_ptr<SourceStream> URLRequestHttpJob::SetUpSourceStream() {
base::LowerCaseEqualsASCII(type, kXGZip)) {
types.push_back(SourceStream::TYPE_GZIP);
} else if (base::LowerCaseEqualsASCII(type, kSdch)) {
+ // If SDCH support is not configured, pass through raw response.
+ if (!request()->context()->sdch_manager())
+ return upstream;
types.push_back(SourceStream::TYPE_SDCH);
} else {
// Unknown encoding type. Pass through raw response body.

Powered by Google App Engine
This is Rietveld 408576698