Skip to content

Support Virtual Host for HTTP Proxy Module #20

@magkani

Description

@magkani

HTTP Proxy Module
I would like to suggest to add in few lines of code to preserve the host name and forward it to the application to support virtual host.

Currently the host is being set to blank.

Below are the suggested improvement, pull request created #21.

origHost := r.Host
if origHost == "" {
	origHost = r.Header.Get("Host")
}
r.Host = origHost

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions