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

Fixes #246: Add option --auto to set proxy option autoRewrite #247

Closed
wants to merge 1 commit into from

Conversation

kwesterfeld
Copy link

@kwesterfeld kwesterfeld commented Feb 15, 2016

  • add handling for --auto flag

Fixes #246

@@ -32,6 +33,7 @@ if (argv.h || argv.help) {
' -U --utc Use UTC time format in log messages.',
'',
' -P --proxy Fallback proxy if the request cannot be resolved. e.g.: http://someurl.com',
' --auto Set proxy autoRewrite flag for proxy, handling 301/302 responses',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of changing auto to autoRewrite later, I think it would be simpler and more clear to use the option --auto-rewrite from the start instead. Otherwise I think this looks good.

@thornjad
Copy link
Member

@kwesterfeld looks like we have some merge conflicts to take a look at

@thornjad thornjad added the minor version non-breaking, non-trivial change label Dec 18, 2019
@thornjad
Copy link
Member

Given the variety of options available in http-proxy, I'm going to close this in favor of the approach of passing through options to http-proxy itself in #459, which would solve this same issue

@thornjad thornjad closed this Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor version non-breaking, non-trivial change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option --auto to set proxy option autoRewrite
3 participants