couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [5/6] chttpd commit: updated refs/heads/master to 41ac33a
Date Tue, 02 Feb 2016 15:23:27 GMT
Convert all CORS headers config into lowercase


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

Branch: refs/heads/master
Commit: f2515fdfa3c6334fb5da955bd9cdcf7cf1049a98
Parents: e52d212
Author: ILYA Khlopotov <iilyak@ca.ibm.com>
Authored: Thu Jan 28 15:39:30 2016 -0800
Committer: ILYA Khlopotov <iilyak@ca.ibm.com>
Committed: Fri Jan 29 11:45:03 2016 -0800

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


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/f2515fdf/src/chttpd_cors.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_cors.erl b/src/chttpd_cors.erl
index 2af3166..83cfc53 100644
--- a/src/chttpd_cors.erl
+++ b/src/chttpd_cors.erl
@@ -279,7 +279,7 @@ get_cors_config(#httpd{cors_config = undefined}) ->
         undefined ->
             ?SUPPORTED_HEADERS;
         AllowHeaders0 ->
-            split_list(AllowHeaders0)
+            [to_lower(H) || H <- split_list(AllowHeaders0)]
     end,
     AllowMethods = case config:get("cors", "methods", undefined) of
         undefined ->
@@ -291,7 +291,7 @@ get_cors_config(#httpd{cors_config = undefined}) ->
         undefined ->
             ?COUCH_HEADERS;
         ExposedHeaders0 ->
-            split_list(ExposedHeaders0)
+            [to_lower(H) || H <- split_list(ExposedHeaders0)]
     end,
     Origins0 = binary_split_list(config:get("cors", "origins", [])),
     Origins = [{O, {[]}} || O <- Origins0],


Mime
View raw message