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/12/05 17:15:13 UTC
git commit: coding style, whitespace only
Updated Branches:
refs/heads/431-feature-cors c432156f5 -> 52e6f5e8d
coding style, whitespace only
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/52e6f5e8
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/52e6f5e8
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/52e6f5e8
Branch: refs/heads/431-feature-cors
Commit: 52e6f5e8da5534cc4dc7e70ba2a93a4c3f71e3a1
Parents: c432156
Author: Jan Lehnardt <ja...@apache.org>
Authored: Wed Dec 5 17:14:51 2012 +0100
Committer: Jan Lehnardt <ja...@apache.org>
Committed: Wed Dec 5 17:14:51 2012 +0100
----------------------------------------------------------------------
src/couchdb/couch_httpd.erl | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/52e6f5e8/src/couchdb/couch_httpd.erl
----------------------------------------------------------------------
diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl
index eea530c..755ff8c 100644
--- a/src/couchdb/couch_httpd.erl
+++ b/src/couchdb/couch_httpd.erl
@@ -319,16 +319,16 @@ handle_request_int(MochiReq, DefaultFun,
{ok, Resp} =
try
case couch_httpd_cors:is_preflight_request(HttpReq) of
- #httpd{} ->
- case authenticate_request(HttpReq, AuthHandlers) of
- #httpd{} = Req ->
- HandlerFun(Req);
- Response ->
- Response
- end;
+ #httpd{} ->
+ case authenticate_request(HttpReq, AuthHandlers) of
+ #httpd{} = Req ->
+ HandlerFun(Req);
Response ->
Response
- end
+ end;
+ Response ->
+ Response
+ end
catch
throw:{http_head_abort, Resp0} ->
{ok, Resp0};