homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pje
Recipients pje, rschoon
Date 2014年07月02日.22:26:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CALeMXf77Zv0H4-vmgJRr381MV99uE_YF2h10ybjx7ifBdxcGPA@mail.gmail.com>
In-reply-to <1404338061.72.0.461986368187.issue21890@psf.upfronthosting.co.za>
Content
You're right, it shouldn't send the headers until a non-empty string
occurs. I don't see any problem with treating it as a bug, and fixing it.
Your patch will also allow non-compliant behavior, though. It seems to me
it would be better to fix the logic in write() to not call send_headers()
if len(data)==0. That way, it will still error with "write() before
start_response()" in the non-compliant case, but fix the compliance error.
Feel free to reopen/retitle this issue for that.
History
Date User Action Args
2014年07月02日 22:26:54pjesetrecipients: + pje, rschoon
2014年07月02日 22:26:54pjelinkissue21890 messages
2014年07月02日 22:26:54pjecreate

AltStyle によって変換されたページ (->オリジナル) /