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

Allow redirects to redirect, keeping the same endpoint #112

Closed
wants to merge 1 commit into from

Conversation

kmccarp
Copy link

@kmccarp kmccarp commented Sep 30, 2022

Redirect 3xx status codes with a Location header to http://httpstat.us/200 for testing that your application handles redirects (and keeps headers) correctly.

Redirect 3xx status codes with a `Location` header to `http://httpstat.us/200` for testing that your application handles redirects (and keeps headers) correctly.
@aaronpowell
Copy link
Owner

Seems like a reasonable idea, being able to dictate the next step in the redirect, so if the PR updates to reflect that I think it makes the most sense.

Right now, it's a bit limited value, I guess that it returns JSON. I wonder if we should make the home page available via JSON as well...

@daraul
Copy link

daraul commented Nov 24, 2023

I found myself having to debug a max-redirects exception today, and immediately thought it'd make sense to use https://httpstat.us/302 with some trickery to make it redirect to itself n times.

@aaronpowell
Copy link
Owner

Closing this as it's better solved by providing a custom Location in the request custom headers.

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.

None yet

3 participants