You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ii...@apache.org on 2016/03/01 21:00:41 UTC
[08/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack
to e44a372
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 <ii...@ca.ibm.com>
Authored: Thu Feb 25 11:03:48 2016 -0800
Committer: ILYA Khlopotov <ii...@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));