Loading rest_toolkit takes over my HTTPFound
pauleveritt opened this issue · comments
Paul Everitt commented
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 Akkerman commented
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?
Paul Everitt commented
Ouch, long delay in replying. Yes, the response is a 302.