[issue8704] cgitb sends a bogus HTTP header if the app crashes before finishing headers

Ryan Tu report at bugs.python.org
Sat Mar 14 11:51:46 EDT 2020


Ryan Tu <scutxd at gmail.com> added the comment:

#Maybe not a good solution
I do not know the should we delete the code in cgitb.py or adjust the configration of apache httpd. My solution is deleting some code as follows:
```
        return '''
<body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> -->
<body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> --> -->
</font> </font> </font> </script> </object> </blockquote> </pre>
</table> </table> </table> </table> </table> </font> </font> </font>'''
```
Then it works very well, and it has good view.Anyone know what is the situation in ngix?

----------
nosy: +Ryan Tu
versions: +Python 3.8 -Python 2.7, Python 3.2, Python 3.3, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue8704>
_______________________________________


More information about the Python-bugs-list mailing list