couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iil...@apache.org
Subject [28/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372
Date Tue, 01 Mar 2016 20:01:01 GMT
Bring support needed for couch_httpd_rewrite


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/f6b3f96b
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/f6b3f96b
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/diff/f6b3f96b

Branch: refs/heads/split_out_httpd_stack
Commit: f6b3f96ba72c4ef0bd2a8ffbc56f39554dceaaec
Parents: f3ed809
Author: ILYA Khlopotov <iilyak@ca.ibm.com>
Authored: Fri Feb 26 11:17:27 2016 -0800
Committer: ILYA Khlopotov <iilyak@ca.ibm.com>
Committed: Tue Mar 1 08:35:08 2016 -0800

----------------------------------------------------------------------
 src/couch_httpd_handler.erl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/blob/f6b3f96b/src/couch_httpd_handler.erl
----------------------------------------------------------------------
diff --git a/src/couch_httpd_handler.erl b/src/couch_httpd_handler.erl
index 1aa4115..2c12c67 100644
--- a/src/couch_httpd_handler.erl
+++ b/src/couch_httpd_handler.erl
@@ -159,7 +159,9 @@ handle_request_int(MochiReq) ->
         path_parts = [list_to_binary(couch_httpd:unquote(Part))
                 || Part <- string:tokens(Path, "/")],
         requested_path_parts = [?l2b(couch_httpd:unquote(Part))
-                || Part <- string:tokens(RequestedPath, "/")]
+                || Part <- string:tokens(RequestedPath, "/")],
+        user_ctx = erlang:erase(pre_rewrite_user_ctx),
+        auth = erlang:erase(pre_rewrite_auth)
     },
 
     % put small token on heap to keep requests synced to backend calls


Mime
View raw message