couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [1/6] chttpd commit: updated refs/heads/master to 41ac33a
Date Tue, 02 Feb 2016 15:23:23 GMT
Repository: couchdb-chttpd
Updated Branches:
  refs/heads/master 6a2a6b976 -> 41ac33a08


Use correct setting for AllowHeaders


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

Branch: refs/heads/master
Commit: 9733d21ac223fbe92fc94405ef9d33c919aaa8ad
Parents: ddba207
Author: ILYA Khlopotov <iilyak@ca.ibm.com>
Authored: Mon Jan 25 13:04:06 2016 -0800
Committer: ILYA Khlopotov <iilyak@ca.ibm.com>
Committed: Mon Jan 25 13:04:06 2016 -0800

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


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/9733d21a/src/chttpd_cors.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_cors.erl b/src/chttpd_cors.erl
index 525fc5f..b7031e5 100644
--- a/src/chttpd_cors.erl
+++ b/src/chttpd_cors.erl
@@ -268,7 +268,7 @@ allow_credentials(Config, Origin) ->
 get_cors_config(#httpd{cors_config = undefined}) ->
     EnableCors = config:get("httpd", "enable_cors", "false") =:= "true",
     AllowCredentials = config:get("cors", "credentials", "false") =:= "true",
-    AllowHeaders = case config:get("cors", "methods", undefined) of
+    AllowHeaders = case config:get("cors", "headers", undefined) of
         undefined ->
             ?SUPPORTED_HEADERS;
         AllowHeaders0 ->


Mime
View raw message