couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [28/28] git commit: if nothing is acecepted event "*" no headers will be returned.
Date Sun, 11 Nov 2012 19:24:32 GMT
if nothing is acecepted event "*" no headers will be returned.


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

Branch: refs/heads/431-feature-cors
Commit: 63591d72ca68a003c2a14b63df41abafa7ea7e4e
Parents: fbefdb6
Author: benoitc <bchesneau@gmail.com>
Authored: Mon Nov 5 11:16:40 2012 +0100
Committer: Jan Lehnardt <jan@apache.org>
Committed: Sun Nov 11 16:11:14 2012 +0000

----------------------------------------------------------------------
 src/couchdb/couch_httpd_cors.erl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/63591d72/src/couchdb/couch_httpd_cors.erl
----------------------------------------------------------------------
diff --git a/src/couchdb/couch_httpd_cors.erl b/src/couchdb/couch_httpd_cors.erl
index 879fee0..ef01ef4 100644
--- a/src/couchdb/couch_httpd_cors.erl
+++ b/src/couchdb/couch_httpd_cors.erl
@@ -64,8 +64,8 @@ cors_headers(#httpd{mochi_req=MochiReq}) ->
             []
     end.
 
-handle_cors_headers(Origin, Host, []) ->
-    make_cors_header(Origin, Host);
+handle_cors_headers(_Origin, _Host, []) ->
+    [];
 handle_cors_headers(Origin, Host, AcceptedOrigins) ->
     AcceptAll = lists:member("*", AcceptedOrigins),
     case {AcceptAll, lists:member(Origin, AcceptedOrigins)} of


Mime
View raw message