couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chewbra...@apache.org
Subject chttpd commit: updated refs/heads/2080-port-cors to 2b3aaa7
Date Fri, 07 Nov 2014 22:35:44 GMT
Repository: couchdb-chttpd
Updated Branches:
  refs/heads/2080-port-cors 7ac7cc06f -> 2b3aaa775


Whitespace


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

Branch: refs/heads/2080-port-cors
Commit: 2b3aaa77597f49b43b38098d2a9cda362595575f
Parents: 7ac7cc0
Author: Russell Branca <chewbranca@apache.org>
Authored: Fri Nov 7 14:35:40 2014 -0800
Committer: Russell Branca <chewbranca@apache.org>
Committed: Fri Nov 7 14:35:40 2014 -0800

----------------------------------------------------------------------
 src/chttpd_cors.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/2b3aaa77/src/chttpd_cors.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_cors.erl b/src/chttpd_cors.erl
index 5b705bc..fdaa6dc 100644
--- a/src/chttpd_cors.erl
+++ b/src/chttpd_cors.erl
@@ -149,7 +149,7 @@ handle_preflight_request(Req, Config, Origin) ->
             %% the values in list of methods do not set any additional
             %% headers and terminate this set of steps.
             %% http://www.w3.org/TR/cors/#resource-preflight-requests
-                not_preflight
+            not_preflight
         end
     end.
 
@@ -196,7 +196,7 @@ maybe_apply_headers(CorsHeaders, RequestHeaders) ->
     %% If Content-Type is not in ExposedHeaders, and the Content-Type
     %% is not a member of ?SIMPLE_CONTENT_TYPE_VALUES, then add it
     %% into the list of ExposedHeaders
-    ContentType =  proplists:get_value("content-type", ExposedHeaders0),
+    ContentType = proplists:get_value("content-type", ExposedHeaders0),
     IncludeContentType = case ContentType of
         undefined ->
             false;


Mime
View raw message