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

Comments

Projects
None yet
2 participants
@pauleveritt
Collaborator

pauleveritt commented Sep 6, 2014

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

This comment has been minimized.

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

This comment has been minimized.

Collaborator

pauleveritt commented Oct 15, 2014

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

@wichert wichert closed this in 6e28418 Oct 19, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment