summaryrefslogtreecommitdiff
path: root/paste/httpheaders.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix pyflakes warningsVictor Stinner2015-04-221-1/+0
| | | | | | * Remove unused variables * Remove unused imports * Remove dead code
* Fix httpheaders on Python 3Victor Stinner2015-04-211-13/+25
| | | | | | * Call list.sort() with a key function instead of a compare function. * Fix FakeRequest in httpheaders on Python 3: urllib.request now expects properties, not getters (get_xxx() methods).
* Copy the dictionary of global variables to be able to iterate over it andVictor Stinner2014-03-181-2/+3
| | | | modify global variables
* Python 3: Replace "for ... in dict.items()" with "for ... in ↵Cyril Roelandt2014-03-181-3/+3
| | | | | | six.iteritems(dict)" Same change for itervalues().
* Python 3: Use absolute import instead of relative importCyril Roelandt2014-03-181-1/+1
|
* Python 3: use new names of standard library modulesCyril Roelandt2014-03-181-4/+11
| | | | Use "try/except ImportError" to try Python 2 and Python 3 names.
* Get rid of misused .remote() method (should have been .delete()): ↵Ian Bicking2010-09-021-2/+2
| | | | http://trac.pythonpaste.org/pythonpaste/ticket/310
* Fix http://trac.pythonpaste.org/pythonpaste/ticket/398 -- properly reject ↵Ian Bicking2010-09-011-1/+1
| | | | dates that have out-of-range values
* workaround mimetype's incredible lameness:pjenvey2009-03-021-3/+3
| | | | | http://bugs.python.org/issue5401 patch from chrisz
* Use Content-Range: bytes START-END/LENGTH (adding 'bytes')ianb2007-09-101-1/+1
|
* be a little more careful splittingianb2007-09-041-1/+1
|
* Fix for request.languages, which didn't pass the right value to httpheaders. ↵ianb2007-05-251-1/+1
| | | | Filter out empty languages from httpheaders.ACCEPT_LANGUAGE.
* Fix #179, exception for accept-languagesianb2007-05-251-0/+3
|
* Remove the languageRegEx check, as Kelly Yancey says that RFC 2616 does not ↵ianb2007-04-191-3/+1
| | | | actually require languages to be of that format (per http://kbyanc.blogspot.com/2007/04/more-i-dig-through-code-more-paste-is.html)
* Adding language parsing HTTP header code.bbangert2007-01-301-1/+35
|
* convert old-style classes to new-style classespjenvey2007-01-051-1/+1
|
* Fix M-t typo introducedianb2006-10-201-2/+2
|
* more whitespace changesianb2006-10-201-47/+47
|
* reverting r5459, as the issue has already been fixedpjenvey2006-07-171-5/+2
|
* Added tests for file-related conditional requests. Added support for ↵ianb2006-07-171-0/+7
| | | | If-None-Match to DataApp. Added parsing support for multi-value headers.
* More permissive parsing for dates in headers. IE in particular will add '; ↵ianb2006-07-131-1/+4
| | | | length=200' to If-Modified-Since, and that was producing BadRequest errors. Instead parameters on dates are now simply ignored
* o revised the r5420 patch to be specific to the _IfModifiedSince headerpjenvey2006-06-261-4/+10
| | | | o added a test to reproduce ticket #114
* Clean date headers of extra attributes sent by IEpjenvey2006-06-261-2/+4
| | | | for: ticket #114
* Added copyright header to a bunch of filesianb2006-06-131-0/+2
|
* Allowed for a -1 value in the rangeianb2006-03-301-1/+1
|
* Fixed docstring; removed method that was doubly-defined (I think I deleted ↵ianb2006-03-011-15/+2
| | | | the right version?)
* - noted the RFC for exhaustive list of httpheaderscce2006-02-081-1/+1
|
* - py2.3 compatibility fix as reported by Ben Bangertcce2006-01-061-2/+2
|
* (no commit message)cce2006-01-021-0/+1
|
* - fixed logic/definition problem /w multi-entry headers;cce2006-01-011-41/+100
| | | | | | | | | | | | | | __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
* - cleaned up documentation for paste.auth.cookiecce2005-12-311-2/+3
| | | | | | | | - cleaned up documentation for paste.auth.form - cleaned up documentation for paste.auth.basic - converted InternalServerError into its own class (httpexceptions) - converted BadRequest into its own class (httpexceptions) - a few minor cleanups
* Create a __pudge_all__ variable that contains classesianb2005-12-311-1/+5
|
* - documentation updates to make pudge output look nicercce2005-12-311-27/+41
|
* - fixes to make auto-documentation work nicercce2005-12-301-75/+129
| | | | question: how do I get pudge to document a 'private' class?
* (no commit message)cce2005-12-301-60/+69
|
* - updating httpheaders so it is more reStructuredText compliantcce2005-12-301-16/+17
| | | | (needs more work)
* (no commit message)cce2005-12-301-1/+2
|
* - removing 'return self' from delete()cce2005-12-301-2/+0
|
* - changed all HTTPHeader sub-classes to have a _ prefix, sincecce2005-12-301-43/+36
| | | | | | 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
* (no commit message)cce2005-12-301-3/+3
|
* - fixing my awful spellingcce2005-12-301-16/+16
|
* - added concrete ContentRange headercce2005-12-301-6/+26
| | | | | | - updated fileapp.py to reflect new header btw... how do I assign bugs to myself? I think I need a login.
* - made things which are intended to be private start with underscorecce2005-12-291-57/+64
| | | | | - moved overridable methods up-front so that they are easily identifyable - implemneted update() for multivalue case
* (no commit message)cce2005-12-291-1/+1
|
* - moved collection searching code to resolve() andcce2005-12-291-29/+38
| | | | - by default lower-case all header values (unless specified otherwise)
* - simplified HTTPHeaders by removing format()cce2005-12-291-45/+51
| | | | (should I just make Single/MultiValue/MultiEntry a switch?)
* - removing all entity headers for 304 responsecce2005-12-291-7/+13
| | | | - added abstract parse function to HTTPHeader
* oopscce2005-12-291-2/+2
|
* - added Range.parse to httpheaderscce2005-12-291-38/+78
| | | | | | | | | - 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)
* - make ContentType and ContentLength pickup CGI environment variable ifcce2005-12-291-2/+25
| | | | | the corresponding header is not found (hopefully this redundance can be removed from WSGI)