couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [7/28] git commit: Whitespace formatting
Date Sun, 11 Nov 2012 19:24:31 GMT
Whitespace formatting


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

Branch: refs/heads/431-feature-cors
Commit: d19f694aa3641094c995399d2ce9c69e074e9a97
Parents: f0808ff
Author: Jan Lehnardt <jan@apache.org>
Authored: Thu Nov 8 22:34:41 2012 +0100
Committer: Jan Lehnardt <jan@apache.org>
Committed: Sun Nov 11 16:11:15 2012 +0000

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


http://git-wip-us.apache.org/repos/asf/couchdb/blob/d19f694a/src/couchdb/couch_httpd_cors.erl
----------------------------------------------------------------------
diff --git a/src/couchdb/couch_httpd_cors.erl b/src/couchdb/couch_httpd_cors.erl
index 96abbe6..6c3989a 100644
--- a/src/couchdb/couch_httpd_cors.erl
+++ b/src/couchdb/couch_httpd_cors.erl
@@ -189,11 +189,8 @@ send_preflight_response(#httpd{mochi_req=MochiReq}=Req, Headers) ->
 credentials("*", _Host) ->
     false;
 credentials(_Origin, Host) ->
-    Default = get_bool_config("cors", "credentials",
-                              false),
-
-    get_bool_config(cors_section(Host), "credentials",
-                    Default).
+    Default = get_bool_config("cors", "credentials", false),
+    get_bool_config(cors_section(Host), "credentials", Default).
 
 
 cors_config(Host, Key, Default) ->


Mime
View raw message