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/07/20 15:04:26 UTC

chttpd commit: updated refs/heads/master to 3b80c7f

Repository: couchdb-chttpd
Updated Branches:
  refs/heads/master 6697f3f2d -> 3b80c7fdd


Validate host header

See enabling commit in couchdb-couch

COUCHDB-2752


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

Branch: refs/heads/master
Commit: 3b80c7fdda0d365283cef8d47dc5f453ed8b7042
Parents: 6697f3f
Author: Robert Newson <rn...@apache.org>
Authored: Fri Jul 17 18:15:31 2015 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Fri Jul 17 18:15:31 2015 +0100

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


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/3b80c7fd/src/chttpd.erl
----------------------------------------------------------------------
diff --git a/src/chttpd.erl b/src/chttpd.erl
index f6ce530..fe8dfea 100644
--- a/src/chttpd.erl
+++ b/src/chttpd.erl
@@ -203,6 +203,7 @@ handle_request(MochiReq0) ->
 
     Result =
     try
+        couch_httpd:validate_host(HttpReq),
         check_request_uri_length(RawUri),
         case chttpd_cors:maybe_handle_preflight_request(HttpReq) of
         not_preflight ->