Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added --http-original-host command line flag #188

Merged
merged 1 commit into from
Aug 6, 2015
Merged

Conversation

SaraRands
Copy link
Contributor

Normally gor replaces the Host http header with the host supplied with --output-http. The --http-original-host flag disables that behavior, preserving the original host header.

@killdash9
Copy link

Just a note to provide some motivation for this one. SaraRands and I worked together on this patch. Our need was the following. Our web site's DNS uses wildcard subdomains, so that

www.oursite.com
a.oursite.com
b.oursite.com
c.oursite.com 

all go to the same server, which presents a different experience based on the host name used. For a load testing replay against our production system, it is critical that the hostname be the same as the original request. Fortunately, a79e54c got us most of the way there, this fix just exposes that configuration item as a command line option.

@buger
Copy link
Owner

buger commented Aug 6, 2015

Make sense! I will update docs.

buger added a commit that referenced this pull request Aug 6, 2015
Added --http-original-host command line flag
@buger buger merged commit 08933e1 into buger:master Aug 6, 2015
@buger
Copy link
Owner

buger commented Aug 6, 2015

Included into v0.9.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants