Comment 1 for bug 1014939

Revision history for this message
Tim Penhey (thumper) wrote : Re: [Bug 1014939] [NEW] Same environ cannot be used twice for WikkidApp

On Tue 19 Jun 2012 15:37:31 NZST, Sam Bailey wrote:
> Public bug reported:
>
> After an environ has already had its path_info shifted in WikkidApp.preprocess_environ, it will get stuck inside the while loop if that same environ is then sent back into preprocess_environ.
> For example, calling
>
> app.get_view(environ)
> app(environ, self.start_response)
>
> will result in an infinite loop.

Yes...

I'm wondering if the wsgi spec allows copying of the environ.

Why are you doing this anyway?