summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* gardenfeature.decodingChris McDonough2012-01-281-4/+4
|
* dont try to decode remote_userChris McDonough2012-01-282-30/+21
|
* gardenChris McDonough2012-01-281-9/+14
|
* wordingChris McDonough2012-01-281-5/+5
|
* gardenChris McDonough2012-01-281-5/+0
|
* give up on trying to encode header values when request.headers is usedChris McDonough2012-01-283-51/+35
|
* more spurious diff removalChris McDonough2012-01-281-8/+8
|
* add change notes, reduce spurious diffsChris McDonough2012-01-282-30/+75
|
* set deprecated properties on BaseRequest rather than LegacyRequest, use ↵Chris McDonough2012-01-282-13/+16
| | | | environ_getter for presumed-ascii-only settings
* get rid of test_requests package, put tests back in test_request.pyChris McDonough2012-01-284-1344/+1326
|
* bytesrequest renamed to legacyrequest... it no longer eagerly converts to ↵Chris McDonough2012-01-287-281/+202
| | | | bytes, it just presents the older native string api expected by existing systems. textrequest renamed to baserequest, it is the new default request type.. it no longer eagerly converts to text, either unless an encattr is named on the environ_decoder
* test textrequest and bytesrequest independentlyChris McDonough2012-01-288-1119/+1703
|
* use latin-1 as the default decoder/encoderChris McDonough2012-01-261-2/+2
|
* use environ[REQUEST_METHOD] rather than req.method in case we decide to ↵Chris McDonough2012-01-261-5/+6
| | | | leave it bytes
* make upath_property take into account url encodingChris McDonough2012-01-261-5/+9
|
* get rid of useless literalsChris McDonough2012-01-261-13/+5
|
* make charset a native string, make _content_type_raw an environ getter ↵Chris McDonough2012-01-261-13/+11
| | | | rather than environ decoder
* turn remote_user_encoding and url_encoding into environ_getters (adding ↵Chris McDonough2012-01-263-17/+28
| | | | webob.remote_user_encoding and webob.url_encoding vars to environ), fix _request_uri for Python 3, improve _abs_headerlist, dont decode scheme when looking up
* fix EnvironHeaders class to do encoding and decoding properlyChris McDonough2012-01-264-48/+107
|
* unused imports, long lineChris McDonough2012-01-263-5/+2
|
* remove missing NoIfRange from __all__Chris McDonough2012-01-261-2/+1
|
* make bytesrequest work on python 3Chris McDonough2012-01-263-63/+181
|
* move environ_decoder descriptor next to environ_getterChris McDonough2012-01-251-28/+31
|
* First cut at distinct TextRequest/BytesRequest implementations as aChris McDonough2012-01-254-438/+800
| | | | | | | | | | | | | | | | | | | | fix for issue #21. TextRequest is the default when Request or BaseRequest is imported under Python 3 for backwards compatibility. The only difference Python 3 users should see after upgrading to this: script_name and path_info will be decoded, and methods which erroneously dealt in raw environ values will now deal correctly in text. BytesRequest is the default when Request or BaseRequest is imported under Python 2 for backwards compatibility. It works just like the old BaseRequest under Python 2. Under Python 2, environ values are still dealt with as bytes by all methods. Under Python 3, it coerces all environ values to bytes. It's doubtful anyone will use this under Python 3. Either BytesRequest or TextRequest are usable directly under Python 2 or Python 3, but the intent is to transition people over time to TextRequest on both. Certainly new frameworks could start off using TextRequest.
* gardenChris McDonough2012-01-081-0/+3
|
* fix status_int/status bug on py3 (use explicit floor division), add coverageChris McDonough2012-01-082-3/+30
|
* add warning to docstring of client_addr (closes #20)Chris McDonough2012-01-061-0/+10
|
* Merge pull request #19 from husio/patch-1Sergey Schetinin2012-01-011-2/+0
|\ | | | | remove duplicate __all__ declaration
| * __all__ definition duplicate removedPiotr Husiatyński2012-01-011-2/+0
|/
* fix test failure on py3Chris McDonough2011-12-301-1/+1
|
* fix https://github.com/Pylons/webob/issues/18 (non-ascii form POST, then ↵Sergey Schetinin2011-12-263-5/+18
| | | | parse, then serialize)
* Merge pull request #17 from ametaireau/patch-1Sergey Schetinin2011-12-201-1/+1
|\ | | | | Fix a dead link
| * Fixa dead linkAlexis Metaireau2011-12-201-1/+1
|/
* Merge pull request #13 from alertedsnake/masterSergey Schetinin2011-12-062-3/+19
|\ | | | | Allow use of arbitrary HTTP status codes in Response
| * Improving compliance with RFC2616 re HTTP status codes - now an application canMichael Stella2011-12-062-3/+19
|/ | | | | provide an arbitrary code, and a generic message (based on the x00 code in the same class) will be generated, rather than raising KeyError.
* add __next__ for py3 compat; closes #10Chris McDonough2011-11-211-0/+2
|
* * Added ``request.client_addr`` API (returns IP address implied byChris McDonough2011-10-283-0/+55
| | | | HTTP_X_FORWARDED_FOR, falling back to REMOTE_ADDR).
* * Added ``request.host_port`` API (returns port number implied by HTTP_HOST,Chris McDonough2011-10-283-0/+82
| | | | falling back to SERVER_PORT).
* Merge pull request #4 from cwebber/fix_best_matchSergey Schetinin2011-10-182-2/+2
|\ | | | | Fix NilAccept.best_match() so an empty "offers" + default_match picks default
| * Fix NilAccept.best_match() so an empty "offers" + default_match picks defaultChristopher Allan Webber2011-10-182-2/+2
|/ | | | | | | Prior to this, NilAccept.best_match([], default_match="default") threw: UnboundLocalError: local variable 'best_offer' referenced before assignment Also added a relevant test.
* 1.2b21.2b2Sergey Schetinin2011-10-153-3/+3
|
* * Fix ``request.cookies.get('name', 'default')``. Previously ``default`` wasChris McDonough2011-10-153-1/+12
| | | | ignored.
* version 1.2b11.2b1Sergey Schetinin2011-10-153-3/+3
|
* add note about how to replace best_matches (hand-waving)Chris McDonough2011-10-141-1/+3
|
* fix on 2.7+Chris McDonough2011-10-131-0/+1
|
* gardenfeature.pylons10compatChris McDonough2011-10-133-2/+15
|
* be less aggressive about feature removal for benefit of pylons 1.XChris McDonough2011-10-134-14/+41
|
* * Mutating the ``request.cookies`` property now reflects the mutations intofeature.cookie-bug-for-bugChris McDonough2011-10-105-16/+340
| | | | the ``HTTP_COOKIES`` environ header.
* Merge branch 'master' into feature.cookie-bug-for-bugChris McDonough2011-10-082-4/+16
|\
| * typoChris McDonough2011-10-081-1/+1
| |