Request middleware

48 views
Skip to first unread message

Melvyn Sopacua

unread,
Jul 23, 2018, 8:39:13 AM7/23/18
to django-d...@googlegroups.com

Hi,

 

in our codebase we made use of this gist, which relies on a private API, but more importantly, creates requests without going through the response chain. This is relevant for catching exceptions in Middleware: there were two tests that explicitly test for DISALLOWED_HOST and I had to rewrite them to test for a 400 response.

 

I don't see an easy way to restore the old behavior and stick to official API's. Am I missing something or is this correct?

--

Melvyn Sopacua

Reply all
Reply to author
Forward
0 new messages