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 2015/06/17 12:32:02 UTC

chttpd commit: updated refs/heads/master to 58a987a

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 <rn...@apache.org>
Authored: Wed Jun 17 11:31:50 2015 +0100
Committer: Robert Newson <rn...@apache.org>
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 ->