couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [05/11] chttpd commit: updated refs/heads/master to 238b8c4
Date Wed, 12 Aug 2015 15:54:29 GMT
Use private to_lower instead of string:to_lower


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

Branch: refs/heads/master
Commit: b5d65eaef90435f1041b8d697788d3825e540b03
Parents: 64aa2fd
Author: ILYA Khlopotov <iilyak@ca.ibm.com>
Authored: Wed Jul 29 11:59:42 2015 -0700
Committer: ILYA Khlopotov <iilyak@ca.ibm.com>
Committed: Tue Aug 11 09:14:29 2015 -0700

----------------------------------------------------------------------
 src/chttpd_cors.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/b5d65eae/src/chttpd_cors.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_cors.erl b/src/chttpd_cors.erl
index fc30c9a..525fc5f 100644
--- a/src/chttpd_cors.erl
+++ b/src/chttpd_cors.erl
@@ -130,7 +130,7 @@ handle_preflight_request(Req, Config, Origin) ->
                         %% transform header list in something we
                         %% could check. make sure everything is a
                         %% list
-                        RH = [string:to_lower(H)
+                        RH = [to_lower(H)
                               || H <- split_headers(Headers)],
                         {Headers, RH}
                 end,
@@ -346,7 +346,7 @@ get_origin(Req) ->
         undefined ->
             undefined;
         Origin ->
-            list_to_binary(string:to_lower(Origin))
+            ?l2b(to_lower(Origin))
     end.
 
 


Mime
View raw message