wichert / rest_toolkit

Simple REST servers

Home Page:http://rest-toolkit.rtfd.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Loading rest_toolkit takes over my HTTPFound

pauleveritt opened this issue · comments

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.)

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?

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