You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/08/28 14:00:06 UTC
[43/50] chttpd commit: updated refs/heads/master to 58020ab
Add the request id and timing info in chttpd:send_response
Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/07bf741c
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/07bf741c
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/07bf741c
Branch: refs/heads/master
Commit: 07bf741c809767a71a1066472f0851d275514eb4
Parents: a456f88
Author: Russell Branca <ch...@gmail.com>
Authored: Fri Mar 28 10:33:43 2014 -0700
Committer: Robert Newson <rn...@apache.org>
Committed: Thu Jul 31 11:55:11 2014 +0100
----------------------------------------------------------------------
src/chttpd.erl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/07bf741c/src/chttpd.erl
----------------------------------------------------------------------
diff --git a/src/chttpd.erl b/src/chttpd.erl
index c41707f..fab6695 100644
--- a/src/chttpd.erl
+++ b/src/chttpd.erl
@@ -591,7 +591,7 @@ send_chunk(Resp, Data) ->
send_response(#httpd{mochi_req=MochiReq}=Req, Code, Headers0, Body) ->
couch_stats_collector:increment({httpd_status_codes, Code}),
Headers = Headers0 ++ server_header() ++
- couch_httpd_auth:cookie_auth_header(Req, Headers0),
+ [timing(), reqid() | couch_httpd_auth:cookie_auth_header(Req, Headers0)],
{ok, MochiReq:respond({Code, Headers, Body})}.