couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject git commit: coding style, whitespace only
Date Wed, 05 Dec 2012 16:15:13 GMT
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 <jan@apache.org>
Authored: Wed Dec 5 17:14:51 2012 +0100
Committer: Jan Lehnardt <jan@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};


Mime
View raw message