Message171435
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] |
|
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 | |
|