summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Revert ↵fix-linkcheckSteve Piercy2019-08-181-1/+1
| | | | https://github.com/Pylons/webob/pull/404/commits/c6b623702d72323986ef7c3c1c693cfa49d02b55#r315006064
* api/request.txt:1: [broken] ↵Steve Piercy2019-08-171-1/+1
| | | | http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.1.9: Anchor 'sec4.1.9' not found
* Fix typo.Ira Lun2019-06-211-1/+1
|
* Fix link to RFC.Ira Lun2019-06-211-2/+1
|
* Move comment to outside of list comprehension.Ira Lun2019-06-181-5/+2
| | | | | | | This is to avoid issues with a bug in Black (see https://github.com/Pylons/webob/pull/401#discussion_r294533700.) Also, make the comment slightly more helpful.
* Rearrange lines to make Black happy.Ira Lun2019-06-161-2/+4
|
* Remove unnecessary assignment.Ira Lun2019-06-161-3/+2
|
* Combine sorts.Ira Lun2019-06-161-4/+2
|
* add skip_body argument to BaseRequest::as_text methodvladkhard2019-05-061-2/+2
|
* Encode value for content_type to latin-1 if on Py2Bert JW Regeer2018-11-111-16/+25
| | | | Closes #388
* support copying accept headersMichael Merickel2018-10-231-0/+92
|
* Cleanup backslash escapingBert JW Regeer2018-10-182-31/+31
|
* Remove blank line.Ira Lun2018-10-171-1/+0
|
* Remove unused asterisk_non0_found, and rearrange for readability.Ira Lun2018-10-171-12/+6
| | | | | | `*` ranges with non-0 qvalues are essentially ignored (see https://tools.ietf.org/html/rfc4647#section-3.4, the paragraph starting with 'The special language range "*"...').
* Make black happy againBert JW Regeer2018-10-152-2/+2
|
* Fix many flake8 warnings/errorsBert JW Regeer2018-10-1513-95/+350
|
* WebOb is now formatted by ambv/blackBert JW Regeer2018-10-1418-2170/+2446
| | | | | | | All future commits will be required to format their code using Python black. This also hooks up linting and all that fun stuff to enforce it.
* stop parsing extension params in acceptable_offers and fix commentMichael Merickel2018-10-101-8/+4
|
* support passing around AcceptOffer objectsMichael Merickel2018-10-101-8/+40
|
* remove media range support for offersMichael Merickel2018-10-091-79/+9
| | | | | | | | see the multitude of reasons in https://github.com/Pylons/pyramid/pull/3326 the short answer is that they are fundamentally broken in that media ranges cannot properly match against any accept header with q=0 content
* Merge branch 'fix-warnings' into accept-parse-offerMichael Merickel2018-10-094-6/+11
|\
| * fix test suite warningsMichael Merickel2018-10-062-2/+2
| |
| * use collections.abc for abc types if availableMichael Merickel2018-10-064-4/+9
| | | | | | | | | | collections.MutableMapping and other abc types were deprecated in 3.3 and will be removed in 3.8
* | fix commentMichael Merickel2018-10-021-1/+1
| |
* | further simplifyMichael Merickel2018-10-021-7/+6
| |
* | use Accept.parse_offer to be consistent across the codebaseMichael Merickel2018-10-021-20/+25
| |
* | more clearly define specificity constantsMichael Merickel2018-09-271-4/+9
| |
* | return a named tupleMichael Merickel2018-09-251-2/+27
| |
* | support a standard api for parsing media typesMichael Merickel2018-09-121-4/+47
|/
* Merge pull request #370 from mmerickel/acceptable-offers-rangesBert JW Regeer2018-09-051-7/+32
|\ | | | | add support for media ranges as offers to acceptable_offers
| * add ranges support to acceptable_offersMichael Merickel2018-09-051-7/+32
| |
* | Clarify comment and remove irrelevant information.Ira Lun2018-09-061-3/+2
|/
* add comment explaining why we're filtering offers in invalid/missing headersMichael Merickel2018-09-051-0/+3
|
* clarify return typeMichael Merickel2018-09-051-2/+2
|
* clarify the filtering commentMichael Merickel2018-09-051-5/+7
|
* fix docstringMichael Merickel2018-09-041-1/+1
|
* do not raise on offers that do not match the media type ABNFMichael Merickel2018-09-031-13/+30
|
* Add Request.remote_host propertyNir Soffer2018-07-131-0/+1
| | | | This property expose the REMOTE_HOST environment variable.
* Update documentation for SameSitebugfix/nonbytes-samesiteBert JW Regeer2018-06-032-3/+3
|
* Update serialization failure messageBert JW Regeer2018-06-031-1/+1
| | | | We don't require byte strings
* Serialize SameSite now coerces to bytesBert JW Regeer2018-06-031-0/+2
|
* Change "key" to "name"Steve Piercy2018-04-111-1/+1
| | | | - Re: https://github.com/Pylons/webob/pull/358#issue-181046383
* Remove 'key' keyword argument from set_cookieBert JW Regeer2018-04-111-5/+2
| | | | It has been removed for a while
* MIMEAccept mimics old behaviour betterBert JW Regeer2018-04-101-9/+66
| | | | | | | | | | This updates MIMEAccept to mimic old behaviour better so that downstream projects are not as broken. The goal is not to provide the exact same behaviour, and thus MIMEAccept still uses the new Accept header parsing and matching, however it is much closer to the old API because it no longer raises on an invalid header vs what was shipped in WebOb 1.8.0.
* Use string.Template.safe_substitute for HTTP exc body templatesBert JW Regeer2018-04-041-1/+1
|
* Merge pull request #352 from Cykooz/masterBert JW Regeer2018-04-041-4/+2
|\ | | | | request.POST now supports any requests with the appropriate Content-Type (#351)
| * request.POST now supports any requests with the appropriate Content-Type (#351).Kirill Kuzminykh2018-03-091-3/+1
| |
| * ``request.POST`` now supports DELETE requests with the appropriate ↵Kirill Kuzminykh2018-03-081-3/+3
| | | | | | | | Content-Type (#351).
* | Fix suggested secret length in docHong Yuan2018-03-161-2/+2
|/
* add trailing whitespaces to deprecation warning for MIMEAcceptSteve Piercy2018-01-301-2/+2
| | | | (cherry picked from commit 3fa3311)