Closed leplatrem closed 9 years ago
Sweet, that will help :)
Note that we also probably want forbidden 401 to return JSON.
According to https://github.com/spiral-project/daybed/blob/master/daybed/views/errors.py it should be the case.
The problem is that if we provide the Authorization
header that doesn't validates for any reason, pyramid and pyramid_hawk stops the request.
I am not sure about the strategy:
What do you guys think?
headers aren't sent in this particular case, but that's not the only problem.
I was working on a patch about that yesterday, but still a work in progress.
(the missing header is the ORIGIN one, since self.headers isn't sent as part of the request)
This latest changes should fix it.
Hope the code explains itselfs enough :)
updated.
Great! Thanks!
As a good start, ticket #48 is reproduced in a test case :)