couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chewbra...@apache.org
Subject [1/2] chttpd commit: updated refs/heads/2328-bug-cors-show-update to 0e1af4d
Date Fri, 12 Sep 2014 18:58:29 GMT
Repository: couchdb-chttpd
Updated Branches:
  refs/heads/2328-bug-cors-show-update [created] 0e1af4dde


Make parse_external_response work with binaries and lists

COUCHDB-2328


Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/359503dc
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/359503dc
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/359503dc

Branch: refs/heads/2328-bug-cors-show-update
Commit: 359503dc1c0caf4e36b4e9130d58d0c450d813c9
Parents: 6577ad1
Author: Russell Branca <chewbranca@apache.org>
Authored: Wed Sep 10 15:18:57 2014 -0700
Committer: Russell Branca <chewbranca@apache.org>
Committed: Thu Sep 11 14:39:07 2014 -0700

----------------------------------------------------------------------
 src/chttpd_external.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/359503dc/src/chttpd_external.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_external.erl b/src/chttpd_external.erl
index d86e13f..d77690d 100644
--- a/src/chttpd_external.erl
+++ b/src/chttpd_external.erl
@@ -153,7 +153,7 @@ parse_external_response({Response}) ->
                 };
             {<<"headers">>, {Headers}} ->
                 NewHeaders = lists:map(fun({Header, HVal}) ->
-                    {binary_to_list(Header), binary_to_list(HVal)}
+                    {couch_util:to_list(Header), couch_util:to_list(HVal)}
                 end, Headers),
                 Args#extern_resp_args{headers=NewHeaders};
             _ -> % unknown key


Mime
View raw message