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

Follow 0 redirects registers each request as error for a redirect #88

Closed
jpfuentes2 opened this issue Nov 6, 2014 · 1 comment
Closed

Comments

@jpfuentes2
Copy link
Contributor

I work in ad tech and we have a server that primarily does redirects to external resources and I do not want their services included in my tests. Since I do not want to follow redirects and most end points give a 302 or a 307, vegeta declares it as an error here. This seems to be good default behavior but it'd be nice if I could supply an option to so that it would not follow and not register as an error.

Do you like any of these options?

  • -ignore-redirects Sets -redirects=0 and ensures status codes in the 300s are not counted as errors.
  • Don't register 300s as errors when -redirects=0
  • Change the default behavior so that 300s don't automatically count as errors.
@tsenart tsenart closed this as completed in d310616 Nov 7, 2014
@jpfuentes2
Copy link
Contributor Author

Nice, thanks!

jpfuentes2 added a commit to jpfuentes2/vegeta that referenced this issue Nov 11, 2014
jpfuentes2 added a commit to jpfuentes2/vegeta that referenced this issue Nov 14, 2014
jpfuentes2 added a commit to jpfuentes2/vegeta that referenced this issue Nov 17, 2014
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

No branches or pull requests

1 participant