Commit Graph

10 Commits

Author SHA1 Message Date
Neil Schemenauer 7f7620e7f4 Fix make_safe_filename() to work with unicode strings. 2016-04-04 17:47:00 +00:00
Neil Schemenauer 77ff7b370d Use 'encoding' parameter of unquote_plus(), catch errors. 2016-04-04 17:46:27 +00:00
Neil Schemenauer 574b9b1088 Changes for Python 3: str/bytes fixes mostly. 2016-03-31 20:40:32 +00:00
Neil Schemenauer 660d72d1f2 Trival changes to support Python 3. 2016-03-24 22:25:53 +00:00
Neil Schemenauer ce540d417e Change HTTPRequest to always consume request body.
Some clients and middleware expect that the body is always consumed.
Previous to this change, raising a PublishError exception (for
example) could result in a response being sent without the body
being consumed.  Requiring the application code to ensure that the
body is always consumed seems burdensome.  Using a temporary file
or StringIO object seems simplest and should not significantly
affect performance.
2011-05-01 13:28:06 -06:00
Neil Schemenauer 954419bf43 Relax MIME boundary pattern (some clients skip final \r\n). 2011-03-16 19:30:00 -06:00
Neil Schemenauer 21f96a219e Use the StringIO module rather than cStringIO.
cStringIO is gone in Python 3 and also does not handle unicode
strings properly.
2010-01-22 13:32:44 -06:00
Neil Schemenauer 157772dcdb Use __contains__ instead of has_key. 2009-09-07 01:34:27 -06:00
Hamish Lawson 9f566324df Check for other possible values of HTTPS.
Currently HTTPRequest only checks whether the HTTPS environment
variable has a value of 'on', but other possible positive values are
'1' (as set by mod_wsgi) and 'yes'.
2009-02-02 10:04:04 -06:00
C. Titus Brown a73c2957be Reorganize source
Added some simple WSGI documentation; cleaned up test code a bit.
Added test server status check.  Moved the quixote package into the
quixote/ subdirectory.  Added nose+twill tests under tests/.
2008-04-05 20:09:39 -06:00