couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iil...@apache.org
Subject [08/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372
Date Tue, 01 Mar 2016 20:00:41 GMT
Remove equivalent copy of maybe_decompress/1 from original


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/17375fd0
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/17375fd0
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/diff/17375fd0

Branch: refs/heads/split_out_httpd_stack
Commit: 17375fd03d47d91721b428e022e6148051196b07
Parents: 4d4b1a3
Author: ILYA Khlopotov <iilyak@ca.ibm.com>
Authored: Thu Feb 25 11:03:48 2016 -0800
Committer: ILYA Khlopotov <iilyak@ca.ibm.com>
Committed: Tue Mar 1 08:35:07 2016 -0800

----------------------------------------------------------------------
 src/couch_httpd_original.erl | 10 ----------
 1 file changed, 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/blob/17375fd0/src/couch_httpd_original.erl
----------------------------------------------------------------------
diff --git a/src/couch_httpd_original.erl b/src/couch_httpd_original.erl
index 5bcde74..3ac0a7e 100644
--- a/src/couch_httpd_original.erl
+++ b/src/couch_httpd_original.erl
@@ -474,16 +474,6 @@ host_for_request(#httpd{mochi_req=MochiReq}) ->
         Value -> Value
     end.
 
-maybe_decompress(Httpd, Body) ->
-    case header_value(Httpd, "Content-Encoding", "identity") of
-    "gzip" ->
-        zlib:gunzip(Body);
-    "identity" ->
-        Body;
-    Else ->
-        throw({bad_ctype, [Else, " is not a supported content encoding."]})
-    end.
-
 
 etag_match(Req, CurrentEtag) when is_binary(CurrentEtag) ->
     etag_match(Req, binary_to_list(CurrentEtag));


Mime
View raw message