Author pje
Recipients pje, rschoon
Date 2014-07-02.22:26:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
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.
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