]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Add support for Preserving the client provided Host header.
authorPaul Querna <pquerna@apache.org>
Fri, 27 Mar 2009 23:56:53 +0000 (23:56 +0000)
committerPaul Querna <pquerna@apache.org>
Fri, 27 Mar 2009 23:56:53 +0000 (23:56 +0000)
commitb145fc9e77056dc4d6174308fef60764dfb61c52
tree042b550b427c21d908986a7b028cc8efb6dbf8a0
parenta9d397bef04a50c19879f91e89914fb77f1bc40c
Add support for Preserving the client provided Host header.

* modules/proxy/mod_serf.c
    (serf_config_t): Add preservehost member.
    (setup_request): If preservehost is set, use the client provided Host header,
        otherwise use the one from the configuration.
    (is_true): New helper function for decoding true/false strings.
    (add_pass): Change to an argv configuration function, check for not enough
        args, and parse everything after the URI into key/value pairs.
    (create_dir_config): Default to setting preservehost to on.
    (serf_cmds): Change add_pass to a take argv directive.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@759395 13f79535-47bb-0310-9956-ffa450edef68
modules/proxy/mod_serf.c