Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output failure if first item in iterable is empty string #18

Open
GoogleCodeExporter opened this issue Dec 4, 2015 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

Have the application return an iterable where the first item is an empty
string. wsgi_intercept will fail to process the remaining items in the
iterable.  The solution is to dedent by 1 level the following lines in the
"makefile function", so that the loop runs regardless of whether the first
element was an emptyt string: 

    while 1:
        data = self.result.next()
        self.output.write(data)


Original issue reported on code.google.com by [email protected] on 3 Apr 2011 at 1:08

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant