You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2012/11/08 23:44:11 UTC
[2/15] git commit: Whitespace formatting
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 <ja...@apache.org>
Authored: Thu Nov 8 22:34:41 2012 +0100
Committer: Jan Lehnardt <ja...@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) ->