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

Loading rest_toolkit takes over my HTTPFound #6

Closed
pauleveritt opened this issue Sep 6, 2014 · 2 comments
Closed

Loading rest_toolkit takes over my HTTPFound #6

pauleveritt opened this issue Sep 6, 2014 · 2 comments

Comments

@pauleveritt
Copy link
Collaborator

I have an application which needs to do:
raise HTTPFound(location=location)

config.include('rest_toolkit') steps in and catches that exception, returning in the body:

{"message": "302 Found"}

...rather than actually generating a redirect. Without the config.include I get a Location header. With it, I don't (and instead, get content type application/json.)

@wichert
Copy link
Owner

wichert commented Sep 6, 2014

I can see why the location header would get lost, that is indeed a bug. The status code if the response should still be 302. Can you please check if that is true?

@pauleveritt
Copy link
Collaborator Author

Ouch, long delay in replying. Yes, the response is a 302.

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

2 participants