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 kulikjak
Recipients Aron Podrigal, Bert JW Regeer, Decorater, Fran Boon, Tim Nyborg2, X-Istence, berker.peksag, cito, elgow, ethan.furman, jackjansen, kulikjak, ned.deily, quentel, remi.lapeyre, rr-, srittau, watusimoto
Date 2020年09月25日.14:10:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1601043013.66.0.337180727303.issue27777@roundup.psfhosted.org>
In-reply-to
Content
We internally tested the most recent PR and found some issues with it:
https://github.com/python/cpython/pull/21457#issuecomment-698845895
We ended up using a much simpler patch, which seems to work as expected.
--- Python-3.7.8/Lib/cgi.py
+++ Python-3.7.8/Lib/cgi.py
@@ -703,7 +703,10 @@
 if not data:
 self.done = -1
 break
- self.file.write(data)
+ if self._binary_file:
+ self.file.write(data)
+ else:
+ self.file.write(data.decode())
 todo = todo - len(data)
 
 def read_lines(self):
History
Date User Action Args
2020年09月25日 14:10:13kulikjaksetrecipients: + kulikjak, jackjansen, srittau, cito, ned.deily, ethan.furman, quentel, X-Istence, berker.peksag, Decorater, rr-, remi.lapeyre, watusimoto, Bert JW Regeer, Aron Podrigal, elgow, Fran Boon, Tim Nyborg2
2020年09月25日 14:10:13kulikjaksetmessageid: <1601043013.66.0.337180727303.issue27777@roundup.psfhosted.org>
2020年09月25日 14:10:13kulikjaklinkissue27777 messages
2020年09月25日 14:10:13kulikjakcreate

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