Request middleware

2018-07-23 Thread Melvyn Sopacua
Hi, in our codebase we made use of this gist[1], 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 re

Re: 0.91-bugfixes: response middleware applied even though request middleware returned a response

2006-11-10 Thread Jeremy Dunck
On 11/10/06, James Bennett <[EMAIL PROTECTED]> wrote: > Can you point me to the other requests? > Apparently, I exaggerated. I could only find one other request, at the end of this thread: http://groups.google.com/group/django-developers/browse_thread/thread/587004d127dd9444/5ffe71f43a099d22?ln

Re: 0.91-bugfixes: response middleware applied even though request middleware returned a response

2006-11-10 Thread James Bennett
On 11/10/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > This is the third or so request to have a bug applied to > 0.91-bugfixes. I'm not at all upset, but the prior requests haven't > been answered. Would it be possible for me to gain committer access > on that branch? I'm fixing bugs over ther

0.91-bugfixes: response middleware applied even though request middleware returned a response

2006-11-10 Thread Jeremy Dunck
I just ran into a problem caused by response middleware getting called even though request middleware returned a response. The docs, even in 0.91, claim that all response processing stops if request middleware returns a response, but this was not the case, even on trunk, until [2358], while 0.91