summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update test to just check the environment variablebugfix/modify_postBert JW Regeer2015-04-121-5/+1
| | | | | The test was flawed in that it assumed that the body_file would be replaced with FakeCGIBody.
* Request.POST should not replace Request.body_fileBert JW Regeer2015-04-122-9/+6
| | | | | | | | FakeCGIBody mangles anything that isn't actually form-encoded, such as JSON that isn't sent with the appropriate content type. We hereby remove the usage of FakeCGIBody and instead just make the body itself seekable.
* Add failing test for request.POST modified bodyBert JW Regeer2015-04-111-0/+15
| | | | See https://github.com/Pylons/webob/issues/149 for more details.
* Add news update for PATCH bodyBert JW Regeer2015-04-111-0/+3
|
* Merge pull request #184 from jd/jd/read-body-on-patchBert JW Regeer2015-04-102-2/+19
|\ | | | | request: read body from file if the method is PATCH
| * request: read body from file if the method is PATCHJulien Danjou2014-12-262-2/+19
| | | | | | | | | | | | Currently Request.from_file ignore the body of a request if the method is PATCH. This fixes that by using the dictionary we have to know if a request might have a body or not.
* | Merge pull request #190 from dstufft/workaround-python-23801Bert JW Regeer2015-04-042-6/+69
|\ \ | | | | | | Include a patch from CPython's bug tracker to fix cgi.FieldStorage on 3.x < 3.4.4
| * | Include a patch from CPython's bug tracker to fix cgi.FieldStorage on 3.xDonald Stufft2015-04-042-6/+69
|/ /
* | Merge remote-tracking branch 'origin/pr/188'Bert JW Regeer2015-04-036-102/+283
|\ \ | | | | | | | | | Fixes #166, #171
| * | Add better/more information about RFC6265 cookie-octetfix.cookie_handlingBert JW Regeer2015-03-221-0/+14
| | | | | | | | | | | | | | | We want to provide people an easy to find resource on what is now going to be valid in a WebOb cookie.
| * | Add setup/teardown module functionsBert JW Regeer2015-03-223-6/+39
| | | | | | | | | | | | | | | | | | Sets up the cookies._should_raise using a module setup/teardown functions instead of setting it at module scope per suggestions from Michael Merickel.
| * | Re-instate utf-8 cookie values (b/w)Bert JW Regeer2015-03-221-1/+2
| | |
| * | Update news about Morsel/set_cookie changesBert JW Regeer2015-03-221-7/+12
| | |
| * | Use RuntimeWarning instead of DeprecationWarningBert JW Regeer2015-03-222-2/+2
| | | | | | | | | | | | | | | This makes the warning more noticeable to people and will be less likely to be ignored.
| * | Update test to use eq_ instead of assertBert JW Regeer2015-03-221-3/+3
| | |
| * | Don't calculate the same result twiceBert JW Regeer2015-03-221-2/+4
| | |
| * | Until such a time that we can deprecate this, warnBert JW Regeer2015-03-223-1/+57
| | | | | | | | | | | | | | | | | | Someday we can get rid of this mess and just be strict about what we send, but until such a day we want to warn people that it is going to happen in the future.
| * | Add new test for CookieProfileBert JW Regeer2015-03-221-0/+8
| | | | | | | | | | | | | | | | | | We want to make sure we have at least one test for CookieProfile that fetches a cookie from our request object, and then verifies it returns the appropriate answer.
| * | Remove useless testBert JW Regeer2015-03-221-5/+0
| | |
| * | Verify decode of old cookies, and failure of encoding same cookiesBert JW Regeer2015-03-221-9/+16
| | |
| * | Update test strings to match what is now returnedBert JW Regeer2015-03-221-2/+2
| | |
| * | Remove utf-8 strings from testingBert JW Regeer2015-03-221-4/+4
| | |
| * | Import assert_raisesBert JW Regeer2015-03-221-1/+1
| | |
| * | Document cookie name requirements explicitlyBert JW Regeer2015-03-221-9/+19
| | |
| * | Raise ValueError if cookie value has invalid charsBert JW Regeer2015-03-221-16/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WebOb will now raise a ValueError if an attempt is made to set the cookie to an invalid value. According to RFC6265 a cookie-octet has a specific subset of allowed ASCII characters, and that subset does not change whether the value is DQUOT'ed or not. WebOb will still accept all other cookies, it just won't be able to create them.
| * | Set new Base64Serializer as default on CookieProfileBert JW Regeer2015-03-221-1/+1
| | | | | | | | | | | | | | | | | | | | | The previous standard was the JSON serializer, however with upcoming changes that limit what characters are allowed in cookies, bare JSON no longer worked because it could return values that are invalid to be stored in cookies.
| * | Add new base64 serializerBert JW Regeer2015-03-221-1/+33
| | |
| * | Update comments that had false informationBert JW Regeer2015-03-221-5/+5
| | |
| * | Update news.txt with latest fixes/documentationBert JW Regeer2015-03-221-0/+17
| | |
| * | Verify unicode values raise an exceptionBert JW Regeer2015-03-221-6/+5
| | |
| * | Change test_cookies() to not include unicodeBert JW Regeer2015-03-221-3/+3
| | | | | | | | | | | | Unicode values in cookies are invalid.
| * | Update the documentation for response.set_cookie max_ageBert JW Regeer2015-03-221-7/+8
| | | | | | | | | | | | | | | | | | | | | We need to document that max_age can be an integer, timedelta or None, and what that means. max_age takes precedence over an expires argument.
| * | Refactor the respnse.set_cookieBert JW Regeer2015-03-221-23/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Start using the make_cookie call that is available in webob.cookies, this way we don't duplicate the same behavior. There are a couple of backwards compatible fixes: - If expires is set to a timedelta, and max_age is not set, we set max_age to expires a timedelta - expires can also be a datetime, however this was not documented. So if it is a datetime, we want to get a timedelta, by taking the existing expires value, and removing datetime.utcnow() from the value.
| * | Cookies have names, not keys...Bert JW Regeer2015-03-221-8/+8
| | |
| * | Update documentation for set_cookie expiresBert JW Regeer2015-03-221-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | The documentation erroneously states that that expires can be a datetime.timedelta, this is incorrect, but since it has been documented as such, we should continue accepting it. Add the fact that it can be a datetime.datetime, and probably should be.
| * | Documentation states expires can be timedeltaBert JW Regeer2015-03-221-0/+14
| | | | | | | | | | | | | | | The documentation for expires incorrectly states that expires can be a timedelta, let's add a test for that.
* | | Add bugfix notice for Response.from_fileBert JW Regeer2015-04-031-0/+5
| | |
* | | Merge remote-tracking branch 'origin/pr/150'Bert JW Regeer2015-04-032-4/+10
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | This makes sure that the header extracted with Response.from_file are latin1 encoded str instances. Fixes #99
| * | | Native `str` strings from Response.from_filePhilippe Gauthier2014-05-282-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure that header names extracted with Response.from_file are `str` instances otherwise most WSGI implementations will reject the response. Should fix issue https://github.com/Pylons/webob/issues/99
* | | | Start development of the 1.5.x of WebObBert JW Regeer2015-04-031-1/+1
| | | |
* | | | Add news for wsgify doc changeBert JW Regeer2015-04-031-0/+3
| | | |
* | | | Merge remote-tracking branch 'origin/pr/167'Bert JW Regeer2015-04-031-2/+2
|\ \ \ \
| * | | | bring docs up-to-date with actual wsgify signaturefix.wsgify-middleware-docsMichael Merickel2014-11-041-2/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the tests and code clearly expect (req, app, **kw) and it makes sense that it would be that way since req is the ephemeral argument and the rest are defined at setup-time. The documented order before was (app, req, **kw) which puts the req in-between multiple config arguments in the signature. fixes #25, #120
* | | | Update news with latest changesBert JW Regeer2015-04-031-0/+15
| | | |
* | | | Merge remote-tracking branch 'origin/pr/159'Bert JW Regeer2015-04-032-1/+5
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes the Auth-Param header to remove bad white space in accordance with RFC7235. Closes #159
| * | | | Fix optional and bad whitespace parsing in auth-paramlieryan2014-09-222-1/+5
| |/ / /
* | | | Merge remote-tracking branch 'origin/pr/189'Bert JW Regeer2015-04-031-0/+3
|\ \ \ \ | |_|/ / |/| | | | | | | Closes #189
| * | | Support stale-while-revalidate and stale-if-errorDonald Stufft2015-03-281-0/+3
|/ / /
* | | pep 440Michael Merickel2015-02-141-1/+1
| | |
* | | Point to RTD.Tres Seaver2015-01-271-0/+2
| | | | | | | | | | | | [ci skip].