couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject chttpd commit: updated refs/heads/master to 7cffe7e
Date Mon, 25 Apr 2016 20:59:39 GMT
Repository: couchdb-chttpd
Updated Branches:
  refs/heads/master 0a3abeaa6 -> 7cffe7edc


support admin party after d2665ce


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

Branch: refs/heads/master
Commit: 7cffe7edc5abe1a41103eae7f076e843222f429b
Parents: 0a3abea
Author: Jan Lehnardt <jan@apache.org>
Authored: Mon Apr 25 22:19:52 2016 +0200
Committer: Jan Lehnardt <jan@apache.org>
Committed: Mon Apr 25 22:19:52 2016 +0200

----------------------------------------------------------------------
 src/chttpd.erl | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/7cffe7ed/src/chttpd.erl
----------------------------------------------------------------------
diff --git a/src/chttpd.erl b/src/chttpd.erl
index ee90e5d..e41829e 100644
--- a/src/chttpd.erl
+++ b/src/chttpd.erl
@@ -1086,6 +1086,9 @@ respond_(#httpd{mochi_req = MochiReq}, Code, Headers, _Args, start_response)
->
 respond_(#httpd{mochi_req = MochiReq}, Code, Headers, Args, Type) ->
     MochiReq:Type({Code, Headers, Args}).
 
+get_user(#httpd{user_ctx = #user_ctx{name = null}}) ->
+    % admin party
+    "undefined";
 get_user(#httpd{user_ctx = #user_ctx{name = User}}) ->
     couch_util:url_encode(User);
 get_user(#httpd{user_ctx = undefined}) ->


Mime
View raw message