| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| | |
Use correct variable when building message for exception
|
| |
| |
| |
| |
| | |
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695253
|
|\ \
| | |
| | |
| | | |
Fix error on httpserver shutdown
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
If a worker thread takes longer than 0.5s to shut down, we try
to kill it. However, if it manages to stop between the 0.5s
timeout and the call to kill_worker, kill_worker will raise
an exception and abort shutdown.
Handle that case with an exception handler.
|
|/
|
|
| |
See https://www.python.org/dev/peps/pep-0479/
|
|
|
|
| |
so we avoid logic duplication
|
| |
|
|\ |
|
| |
| |
| |
| | |
to support using `add_close` objects as iterators on Python 3.
|
| |
| |
| |
| | |
Mixing binary and text types causes errors later on.
|
| |
| |
| |
| |
| | |
Use sorted() instead, which works on lists as well as dict_items
objects.
|
| |
| |
| |
| |
| | |
The dict.has_keys() method doesn't exist anymore in python 3, check if
the locals() object has a .keys() method instead.
|
| |
| |
| |
| |
| |
| |
| |
| | |
In Python 3, cgi.FieldStorage needs to know about encodings like
shiftjis in order to decode it properly (in Python 2 it's simply not
decoded at all).
Fixes tests.test_wsgiwrappers.test_wsgirequest_charset
|
|/
|
|
| |
Fixes tests.test_wsgiwrappers.test_wsgirequest_charset
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, when the listening socket was already in use, this error message was displayed:
...
File "/private/tmp/n/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/httpserver.py", line 1106, in server_close
self.thread_pool.shutdown(60)
AttributeError: 'WSGIThreadPoolServer' object has no attribute 'thread_pool'
We prevent this by checking if `self` has a `thread_pool` attribute before trying to reference it.
Fixes issue #5 (https://bitbucket.org/ianb/paste/issue/5/invalid-error-message-when-the-socket-is)
|
|\
| |
| |
| | |
replace ``has_key`` method to ``in`` operator #9
|
| | |
|
|\ \
| | |
| | |
| | | |
Add HTTP exception for new code 429 "Too Many Requests"
|
| | |
| | |
| | |
| | | |
http://www.ietf.org/id/draft-nottingham-http-new-status-03.txt
|
|\ \ \
| | | |
| | | |
| | | | |
Escape CGI environment variables in HTTP 404 responses
|
| | | | |
|
| |_|/
|/| |
| | |
| | |
| | | |
because `cgi.parse_qsl` is deprecated, according to
https://docs.python.org/2/library/cgi.html#cgi.parse_qsl
|
| | |
| | |
| | |
| | | |
by wrapping `map` with `list`.
|
| | | |
|
| | |
| | |
| | |
| | | |
as suggested by @haypo at https://bitbucket.org/ianb/paste/pull-request/22/fix-improper-commas-in-request-headers-in/diff#comment-6583636
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Revert from using `get` to `getheaders` method.
fixes #4
|
| | |
| | |
| | |
| | |
| | | |
On Python 2, html_quote(unicode) returns again bytes to restore backward
compatibility.
|
| | | |
|
| | |
| | |
| | |
| | | |
Fix paste.exceptions.serial_number_generator.hash_identifier()
|
| | |
| | |
| | |
| | | |
Use Message.items() method instead of HTTPMessage.headers attribute.
|
|\ \ \
| | | |
| | | |
| | | | |
Fix bad reference to iterator variable
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* Remove unused variables
* Remove unused imports
* Remove dead code
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Rename duplicated uninstall() function to uninstall_stdin() and fix typo in
variable name (_oldstin => _oldstdin).
|
| | | |
| | | |
| | | |
| | | | |
Use self.pos instead of an unknown pos variable.
|
| | | |
| | | |
| | | |
| | | | |
instead of using wsgilib.parse_querystring() alias.
|
| | | |
| | | |
| | | |
| | | | |
Remove a duplicated method, keep the implementation using ignore_wildcards.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* wsgi.input must be a binary file, not a text file
* Fix fixture.TestApp.__str__() on Python 3: decode body from UTF-8
(with xmlcharrefreplace).
* Fix fixture.TestResponse.goto() on Python 3: regex must use bytes,
not Unicode.
* Fix TestApp._check_status() on Python 3
- Decode body from UTF-8 (with xmlcharrefreplace) to format the error message.
- Fix TestApp.encode_multipart() on Python 3: HTTP body must be bytes: encode
lines to utf8 and use byte string literals.
- Fix TestApp.post() on Python 3: default params must be bytes
- Fix TestResponse.__repr__() on Python 3
- Fix TestApp on Python 3: encode params values to UTF-8
- Port TestApp._gen_request() to Python 3
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* Don't compare None with int
* Add __next__() method (alias to next()).
* HTTP body must be bytes
* Don't use string.letters but an hardcoded string to not depend on the locale.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
On Python 3, encode body to UTF-8
|