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

HTTP 307 and 308 status codes are not treated as redirects #147

Closed
JamesMessinger opened this issue Mar 4, 2017 · 6 comments
Closed

HTTP 307 and 308 status codes are not treated as redirects #147

JamesMessinger opened this issue Mar 4, 2017 · 6 comments

Comments

@JamesMessinger
Copy link
Member

Not sure if this is by design or not, but the .redirect and .redirectTo assertions currently only test for 301, 302, and 303 status codes. Shouldn't this list also include HTTP 307 (Temporary redirect) and HTTP 308 (Permanent redirect)?

JamesMessinger added a commit to JamesMessinger/postman-bdd that referenced this issue Mar 4, 2017
@vieiralucas
Copy link
Member

vieiralucas commented Mar 6, 2017

Hello @BigstickCarpet, thanks for your issue.

It seems reasonable to me that chait-http could support 307 and 308 on the .redirect and .redirectTo assertions.

It looks like you already know where to fix that, would you like to make a PR?

@JamesMessinger
Copy link
Member Author

Ok, I'll submit a PR when I get a free moment. May not be for a few weeks though, because I'm about to leave for vacation

@keithamus
Copy link
Member

but the commit is right there! 😨

@JamesMessinger
Copy link
Member Author

hahaha... gotta fork the repo, checkout, branch, commit, test, open a PR... Ain't nobody got time for that! 😸

tonymet pushed a commit to tonymet/chai-http that referenced this issue Mar 13, 2017
tonymet pushed a commit to tonymet/chai-http that referenced this issue Mar 13, 2017
@tonymet
Copy link

tonymet commented Mar 13, 2017

Added PR #154 with @BigstickCarpet 's change. Thanks all this was a blocker for us too :D

keithamus added a commit that referenced this issue Mar 15, 2017
add 307,308 to redirect assertion #147
@vieiralucas
Copy link
Member

Closed by #154

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

4 participants