couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject couch commit: updated refs/heads/master to 04b8c64
Date Mon, 18 Apr 2016 10:01:57 GMT
Repository: couchdb-couch
Updated Branches:
  refs/heads/master e63f68648 -> 04b8c646e


headers specified in a JS rewrite can come back as binaries.

fixes rewrites_js JS test.


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

Branch: refs/heads/master
Commit: 04b8c646e39f303b629bd63c0f2f9b2df8320ba6
Parents: e63f686
Author: Jan Lehnardt <jan@apache.org>
Authored: Mon Apr 18 11:48:22 2016 +0200
Committer: Jan Lehnardt <jan@apache.org>
Committed: Mon Apr 18 12:01:49 2016 +0200

----------------------------------------------------------------------
 src/couch_httpd.erl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/04b8c646/src/couch_httpd.erl
----------------------------------------------------------------------
diff --git a/src/couch_httpd.erl b/src/couch_httpd.erl
index c4f5a9c..2dd6ed2 100644
--- a/src/couch_httpd.erl
+++ b/src/couch_httpd.erl
@@ -695,7 +695,9 @@ send(Resp, Data) ->
 
 no_resp_conn_header([]) ->
     true;
-no_resp_conn_header([{Hdr, _}|Rest]) ->
+no_resp_conn_header([{Hdr, V}|Rest]) when is_binary(Hdr)->
+    no_resp_conn_header([{?b2l(Hdr), V}|Rest]);
+no_resp_conn_header([{Hdr, _}|Rest]) when is_list(Hdr)->
     case string:to_lower(Hdr) of
         "connection" -> false;
         _ -> no_resp_conn_header(Rest)


Mime
View raw message