couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [2/15] git commit: Whitespace formatting
Date Thu, 08 Nov 2012 22:44:11 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/7f4122dc
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/7f4122dc
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/7f4122dc

Branch: refs/heads/431-feature_cors
Commit: 7f4122dcaac3bbe2c42a05a9b5ae7c1c1bd78371
Parents: 0a4cd90
Author: Jan Lehnardt <jan@apache.org>
Authored: Thu Nov 8 22:34:41 2012 +0100
Committer: Jan Lehnardt <jan@apache.org>
Committed: Thu Nov 8 23:37:34 2012 +0100

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


http://git-wip-us.apache.org/repos/asf/couchdb/blob/7f4122dc/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