Repository: couchdb-chttpd Updated Branches: refs/heads/master e2c2bd7ba -> 58a987a57
Support virtual hosts Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/58a987a5 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/58a987a5 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/58a987a5 Branch: refs/heads/master Commit: 58a987a577a7e31a0129e42b83dbb9f29fdf5f21 Parents: e2c2bd7 Author: Robert Newson <[email protected]> Authored: Wed Jun 17 11:31:50 2015 +0100 Committer: Robert Newson <[email protected]> Committed: Wed Jun 17 11:31:50 2015 +0100 ---------------------------------------------------------------------- src/chttpd.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/58a987a5/src/chttpd.erl ---------------------------------------------------------------------- diff --git a/src/chttpd.erl b/src/chttpd.erl index b23e131..2dd17cb 100644 --- a/src/chttpd.erl +++ b/src/chttpd.erl @@ -123,8 +123,9 @@ stop() -> catch mochiweb_http:stop(https), mochiweb_http:stop(?MODULE). -handle_request(MochiReq) -> +handle_request(MochiReq0) -> Begin = os:timestamp(), + MochiReq = couch_httpd_vhost:dispatch_host(MochiReq0), case config:get("chttpd", "socket_options") of undefined ->
