Message171435
| Author |
maker |
| Recipients |
maker |
| Date |
2012年09月28日.10:54:01 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1348829642.54.0.0563748954245.issue16083@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Sending a "GET /0円" causes a TypeEror to be raised and the connection to be unexpectedly closed.
$ python -m SimpleHTTPServer 8000
$ printf "GET /00円" | nc localhost 8000
TypeError: must be encoded string without NULL bytes, not str
----------------------------------------
I think raising a 400 error should be fine. Also, shouldn't the error message contain a repr(string)?
[From http://corte.si/posts/code/pathod/pythonservers/index.html] |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年09月28日 10:54:02 | maker | set | recipients:
+ maker |
| 2012年09月28日 10:54:02 | maker | set | messageid: <1348829642.54.0.0563748954245.issue16083@psf.upfronthosting.co.za> |
| 2012年09月28日 10:54:02 | maker | link | issue16083 messages |
| 2012年09月28日 10:54:01 | maker | create |
|