summaryrefslogtreecommitdiff
path: root/waitress/parser.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix tests Python3 breakageMatt Russell2016-06-241-1/+1
|
* Prevent header spoofing via underscore/dash conflation.Matt Russell2016-06-241-0/+2
| | | | See https://www.djangoproject.com/weblog/2015/jan/13/security/
* preserve whitespace between folded header linesDavid Glick2015-04-131-1/+1
| | | | Fixes #53
* no need to alias close to _close now that ReadOnlyFileBasedBuffer actually ↵Chris McDonough2014-05-151-2/+2
| | | | has a close method that works both when called from inside waitress and from within wsgi code
* - When waitress receives a ``Transfer-Encoding: chunked`` request, we no longerChris McDonough2013-11-211-2/+15
| | | | | | | | | | | | | | | send the ``TRANSFER_ENCODING`` nor the ``HTTP_TRANSFER_ENCODING`` value to the application in the environment. Instead, we pop this header. Since we cope with chunked requests by buffering the data in the server, we also know when a chunked request has ended, and therefore we know the content length. We set the content-length header in the environment, such that applications effectively never know the original request was a T-E: chunked request; it will appear to them as if the request is a non-chunked request with an accurate content-length. - Cope with the fact that the ``Transfer-Encoding`` value is case-insensitive. Fixes #43
* #13, add some comments on why we return HTTP 1.0 disregarding HTTP 1.1 ↵Adam Groszer2013-08-151-0/+4
| | | | requests on header errors
* Season to taste.Tres Seaver2013-05-231-6/+7
|
* autopep8 runthrough and janitorial changes.Keith Gaughan2013-05-231-9/+9
|
* fix for py3Chris McDonough2012-09-281-1/+1
|
* Return a 400 error instead of a 500 error when pathological input case ↵Chris McDonough2012-09-281-11/+23
| | | | reported at http://corte.si/posts/code/pathod/pythonservers/index.html is determined
* Support the WSGI ``wsgi.file_wrapper`` protocol as perChris McDonough2012-01-161-0/+5
| | | | http://www.python.org/dev/peps/pep-0333/#optional-platform-specific-file-handling.
* - Fix PATH_INFO encoding/decoding on Python 3 (as per PEP 333, tunnelChris McDonough2012-01-031-51/+58
| | | | bytes-in-unicode-as-latin-1-after-unquoting).
* Bug FixesChris McDonough2011-12-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | ~~~~~~~~~ - Set up logging by calling logging.basicConfig() when ``serve`` is called (show tracebacks and other warnings to console by default). - Disallow WSGI applications to set "hop-by-hop" headers (Connection, Transfer-Encoding, etc). - Don't treat 304 status responses specially in HTTP/1.1 mode. - Remove out of date ``interfaces.py`` file. - Normalize logging (all output is now sent to the ``waitress`` logger rather than in degenerate cases some output being sent directly to stderr). Features ~~~~~~~~ - Support HTTP/1.1 ``Transfer-Encoding: chunked`` responses. - Slightly better docs about logging.
* handle only one task at a time on channel to fix pipelineing issuesChris McDonough2011-12-291-16/+14
|
* ensure headers and body cannot exceed a max sizeChris McDonough2011-12-281-1/+47
|
* pep 8Chris McDonough2011-12-261-1/+1
|
* add expect/continue support; document differences from zope.serverChris McDonough2011-12-241-0/+5
|
* add url_scheme adjustment, make available to serve initializationChris McDonough2011-12-231-1/+1
|
* add functional tests, fix crap under py3, rejigger task to not be so brokenChris McDonough2011-12-231-6/+6
|
* all tests pass on py3kChris McDonough2011-12-221-2/+2
|
* more py3 prepChris McDonough2011-12-221-2/+2
|
* first cut at prepping for python 3 compatChris McDonough2011-12-221-38/+40
|
* add 100 coverage for tasks, rejigger some responsibilities and remove some ↵Chris McDonough2011-12-221-0/+1
| | | | unused code
* garden setup artifacts a bit, 100 percent test coverage for parserChris McDonough2011-12-221-10/+11
|
* remove docs-only interfacesChris McDonough2011-12-211-5/+2
|
* de-enterprise-izeChris McDonough2011-12-211-0/+204