Message377493
| 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:13 | kulikjak | set | recipients:
+ 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:13 | kulikjak | set | messageid: <1601043013.66.0.337180727303.issue27777@roundup.psfhosted.org> |
| 2020年09月25日 14:10:13 | kulikjak | link | issue27777 messages |
| 2020年09月25日 14:10:13 | kulikjak | create |
|