-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Custom output formatter #97
Conversation
ouch! the build failed because I'm using the new Should I upgrade the golang version in the travis config or use any other method to build strings compatible with 1.9? |
@rakyll Why is taking so long to answer my question? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for not being responsive. I have some comments on this PR but don't have time for the review at this point. I will merge this and address them in another PR. Thanks much for the feature.
Can you replace the use of strings.Builder and make sure it builds with Go 1.9? |
Thanks! |
The `/redirect-to` endpoint currently acts as an open redirect, which is bad for any go-httpbin instance exposed to the public internet. This allows configuring an allowlist of domains to which traffic can be redirected.
as requested at #92, this PR changes the rendering strategy so clients can inject the output format for each test