| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
Now HTTP status 206 is used even if the range is the full content.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
Use also "from __future__ import print_function".
|
|
|
|
| |
Use "try/except ImportError" to try Python 2 and Python 3 names.
|
| |
|
| |
|
|
|
|
| |
requests
|
|
|
|
| |
If-None-Match to DataApp. Added parsing support for multi-value headers.
|
|
|
|
| |
o added a test to reproduce ticket #114
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
__call__ now always returns a string value
- renamed resolve to values in HTTPHeader to better
reflect the public-interface for this (esp for multi-entry headers)
- a few bugs in mult-entry headers
- added common CGI headers to httpheaders; I know they don't
really belong here, but error checking is nice
- updated auth.digest and auth.basic to use httpheaders
(this is what prompted the above changes)
- added WWW_AUTHENTICATe header which will build a response to
a digest challenge
- fixed capitalization error in fileapp and added corresponding test
|
|
|
|
|
|
|
|
|
| |
- renamed Expires.time to Expires.parse for consistency
- updated FileApp/DataApp to return 206 on Partial Content
- all HttpHeader(environ) return strings (empty string when not found)
so that checks like 'if header-part in HttpHeader(collection)'
works without having to check for None
- updated FileApp to use Range header (instead of having its own copy)
|
|
|
|
|
|
| |
- removed unnecessary trailing whitespace in fixture.py
- no longer reporting socket failures in httpserver
- fixed some caching issues /w fileapp
|
|
|
|
|
|
|
|
|
| |
- made error messages us \r\n rather than just \n in httpexceptions
to comply with various browsers
- added tests to check FileApp
- added support for handling 100 Continue in httpserver
- fixingup dumpenviron in wsgilib to dump message body
- misc changes to fileapp (mostly documentation)
|
|
- added if-modified-since logic to fileapp.py
- added helper to mark file/data as cached in fileapp.py
- added starter regression test for fileapp.py
note: if-modified-since is still slighly broken due to timezone issues
(it isn't consistenly keeping gmtime and localtime)
|