summaryrefslogtreecommitdiff
path: root/paste/fileapp.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix fileapp on Python 3Victor Stinner2015-04-221-5/+7
| | | | | | | * 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.
* Python 3: Replace "except Exception, exc" with "except Exception as exc:"Cyril Roelandt2014-03-181-3/+3
|
* respond with 206 partial content whenever a range was requestedJan-Wijbrand Kolman2013-03-251-3/+3
|
* Do not set Content-Encoding to 'None' ↵Ian Bicking2010-09-021-2/+7
| | | | (http://trac.pythonpaste.org/pythonpaste/ticket/427)
* Paste: fix Ticket #299maluke2009-07-011-1/+1
|
* added DirectoryApp.make_fileapp to allow some customizationmaluke2008-05-301-1/+4
|
* make sure DirectoryApp.path ends with os.path.sepmaluke2008-05-231-1/+3
|
* fixed __all__maluke2008-05-231-1/+1
|
* implemented DirectoryAppmaluke2008-05-231-5/+32
|
* Use wsgi.file_wrapper when availableianb2008-04-111-1/+5
|
* first pass at an ArchiveStorecce2007-08-071-3/+58
|
* Make allowed headers settable in paste.fileapp.DataAppianb2007-03-061-3/+9
|
* make guess_type overridableianb2007-02-191-1/+4
|
* Prefer ETags over Last-Modified when calculating 304sianb2007-02-181-12/+20
|
* Fix for FileApp replying to non-GET requests, and giving the body for HEAD ↵1.2ianb2007-02-011-2/+16
| | | | requests
* Handle file not found in FileAppianb2007-01-181-0/+5
|
* fixing server side cache /w the nocache headercce2007-01-101-3/+6
|
* convert old-style classes to new-style classespjenvey2007-01-051-1/+1
|
* A big commit, primarily aesthetic/whitespace in nature. This is the result ↵ianb2006-10-201-11/+11
| | | | of running pylint over the codebase. Some minor/hard-to-reach typos were also picked up.
* Make fileapp.DataApp directly usable, plus handle empty content properlyianb2006-09-251-2/+1
|
* Set Last-Modified properly in paste.fileapp (it wasn't being updated ↵ianb2006-08-281-1/+4
| | | | properly when under CACHE_SIZE, and wasn't being updated at all when over CACHE_SIZE).
* Added tests for file-related conditional requests. Added support for ↵ianb2006-07-171-1/+15
| | | | If-None-Match to DataApp. Added parsing support for multi-value headers.
* Added copyright header to a bunch of filesianb2006-06-131-0/+2
|
* Using ETag's for browser-side HTTP 1.1 caching when available for static ↵bbangert2006-01-181-0/+1
| | | | content. If found, throwing the 304 with the ETag early, before fileapp creation/call, for efficiency.
* - fixed logic/definition problem /w multi-entry headers;cce2006-01-011-4/+4
| | | | | | | | | | | | | | __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
* - changed all HTTPHeader sub-classes to have a _ prefix, sincecce2005-12-301-17/+17
| | | | | | they are quite private and should (usually) be singeltons. - updated all instances to use UPPPER_CASE format, like CONTENT_TYPE - propigated these changes to tests and to fileapp.py
* - added concrete ContentRange headercce2005-12-301-13/+8
| | | | | | - updated fileapp.py to reflect new header btw... how do I assign bugs to myself? I think I need a login.
* - removing all entity headers for 304 responsecce2005-12-291-6/+6
| | | | - added abstract parse function to HTTPHeader
* - forgot to remove debugging infocce2005-12-291-2/+0
| | | | | | | | | - update httpserver to not include HTTP_CONTENT_TYPE or HTTP_CONTENT_LENGTH header fields as discussed on Web-Sig oh, last change had one other thing: - update ContentType and ContentLength to use the CGI variables rather than the corresponding HTTP_ variables in environ
* - added Range.parse to httpheaderscce2005-12-291-20/+18
| | | | | | | | | - 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)
* - upgraded fileapp.py to use httpheaderscce2005-12-281-177/+27
| | | | | | | - fixed bug in content-disposition - fixed bug in cache-control next-up: Content-Range, Range headers
* fixed ticket #40 - thanks tsidwickcce2005-12-251-1/+1
|
* (no commit message)cce2005-12-251-7/+4
|
* - added Range: functionality to FileAppcce2005-12-251-34/+129
| | | | | | - removed unnecessary trailing whitespace in fixture.py - no longer reporting socket failures in httpserver - fixed some caching issues /w fileapp
* - got rid of unnecessary trailing spaces in httpexceptionscce2005-12-231-17/+33
| | | | | | | | | - 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)
* - made __call__ for an HTTPException be the same as wsgi_applicationcce2005-12-231-50/+182
| | | | | | | | - 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)
* Fixing typobbangert2005-12-221-1/+1
|
* - removed unnecessary spaces in several filescce2005-12-221-12/+78
| | | | - added DataApp to paste.fileapp
* Added -W option to tests, which will turn warnings into errors (warnings ↵ianb2005-12-181-0/+53
haven't actually been removed yet, though). Split response and fileapp from wsgilib. Some portions of wsgilib may still move to response module, this is just the first cut