summaryrefslogtreecommitdiff
path: root/tests/httpwrappers
Commit message (Collapse)AuthorAgeFilesLines
* Refs #34233 -- Used aiter() and anext().Nick Pope2023-01-181-1/+1
| | | Available since Python 3.10.
* Fixed #33735 -- Added async support to StreamingHttpResponse.Carlton Gibson2022-12-221-0/+36
| | | | | Thanks to Florian Vazelle for initial exploratory work, and to Nick Pope and Mariusz Felisiak for review.
* Updated documentation and comments for RFC updates.Nick Pope2022-11-101-2/+2
| | | | | | | | | | | | | | | - Updated references to RFC 1123 to RFC 5322 - Only partial as RFC 5322 sort of sub-references RFC 1123. - Updated references to RFC 2388 to RFC 7578 - Except RFC 2388 Section 5.3 which has no equivalent. - Updated references to RFC 2396 to RFC 3986 - Updated references to RFC 2616 to RFC 9110 - Updated references to RFC 3066 to RFC 5646 - Updated references to RFC 7230 to RFC 9112 - Updated references to RFC 7231 to RFC 9110 - Updated references to RFC 7232 to RFC 9110 - Updated references to RFC 7234 to RFC 9111 - Tidied up style of text when referring to RFC documents
* Fixed #33567 -- Avoided setting default text/html content type on responses.Claude Paroz2022-03-091-2/+1
|
* Refs #10188 -- Added tests for BadHeaderErrors when HTTP header with ↵Keryn Knight2022-03-021-0/+21
| | | | newlines cannot be encoded/decoded.
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-2/+8
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-310/+354
|
* Refs #24121 -- Added __repr__() to StreamingHttpResponse and subclasses.Nicolas Restrepo2021-06-221-0/+7
|
* Fixed #32389 -- Fixed ResponseHeaders crash when data is not mapping.Illia Volochii2021-01-281-0/+4
|
* Fixed #32002 -- Added headers parameter to HttpResponse and subclasses.Tom Carrick2020-10-071-1/+22
|
* Refs #32002 -- Added tests for HttpResponse's content_type parameter.Tom Carrick2020-10-071-0/+4
|
* Fixed #31789 -- Added a new headers interface to HttpResponse.Tom Carrick2020-09-141-22/+59
|
* Capitalized Unicode in docs, strings, and comments.Jon Dufresne2020-04-201-1/+2
|
* Replaced encode() usage with bytes literals.Jon Dufresne2019-11-181-2/+2
|
* Fixed #30294 -- Allowed HttpResponse to accept memoryview content.sage2019-03-291-0/+4
|
* Refs #29784 -- Switched to https:// links where available.Jon Dufresne2018-09-261-1/+1
|
* Fixed #29627 -- Fixed QueryDict.urlencode() crash with non-string values.Tim Graham2018-08-021-0/+7
| | | Regression in 7d96f0c49ab750799860e42716d7105e11de44de.
* Fixed typos in comments and docs.luz.paz2018-08-011-1/+1
|
* Fixed #27863 -- Added support for the SameSite cookie flag.Alex Gaynor2018-04-131-0/+5
| | | Thanks Alex Gaynor for contributing to the patch.
* Refs #27308, #27753 -- Removed obsolete cookie test mixing bytes with str.Jon Dufresne2017-06-031-9/+0
| | | | Python 3's SimpleCookie treats all values as strings. Passing a bytes object coerces to the repr value.
* Fixed #28249 -- Removed unnecessary dict.keys() calls.Jon Dufresne2017-05-271-3/+7
| | | iter(dict) is equivalent to iter(dict.keys()).
* Fixed #28224 -- Tested for SuspiciousOperation subclasses in Django's tests.Rajesh Veeranki2017-05-251-3/+3
|
* Replaced type-specific assertions with assertEqual().Tim Graham2017-03-171-4/+4
| | | Python docs say, "it's usually not necessary to invoke these methods directly."
* Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode().Tim Graham2017-02-091-3/+3
|
* Refs #23919, #27778 -- Removed obsolete mentions of unicode.Vytis Banaitis2017-01-261-3/+3
|
* Refs #23919 -- Removed unneeded str() callsClaude Paroz2017-01-201-19/+12
|
* Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.Tim Graham2017-01-201-3/+2
| | | These functions do nothing on Python 3.
* Refs #23919 -- Removed unneeded force_str callsClaude Paroz2017-01-201-8/+2
|
* Refs #23919 -- Removed most of remaining six usageClaude Paroz2017-01-181-23/+18
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Removed six.<various>_types usageClaude Paroz2017-01-181-4/+3
| | | | Thanks Tim Graham and Simon Charette for the reviews.
* Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz2017-01-181-34/+0
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-3/+0
|
* Fixed #27640 -- Fixed HttpResponse's __repr__() without a 'Content-Type' ↵roboslone2016-12-271-0/+9
| | | | header.
* Fixed #27606 -- Fixed HttpResponseRedirect.__repr__() crash when ↵Jerome Leclanche2016-12-191-1/+12
| | | | DisallowedRedirect is raised.
* Fixed #27463 -- Fixed E741 flake8 warnings.Ramin Farajpour Cami2016-11-141-8/+8
|
* Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za2016-11-101-17/+6
|
* Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne2016-06-161-11/+11
|
* Fixed #26707 -- Added QueryDict.fromkeys()wim glenn2016-06-061-1/+39
|
* Fixed E128 flake8 warnings in tests/.Tim Graham2016-04-081-5/+5
|
* Fixed #26158 -- Rewrote http.parse_cookie() to better match browsers.Collin Anderson2016-03-151-0/+50
|
* Replaced unnecessary smart_str() with force_str() in httpwrappers tests.Tim Graham2016-03-141-3/+3
|
* Made multiline assertRaises* conform to flake8's E128 rule.Hasan2016-02-041-3/+5
|
* Refs #26022 -- Used context manager version of assertRaises in tests.Hasan2016-01-291-36/+68
|
* Fixed #25725 -- Made HttpReponse immediately close objects.Johannes Hoppe2015-12-141-13/+0
|
* Fixed #20223 -- Added keep_lazy() as a replacement for allow_lazy().Iacopo Spalletti2015-12-121-4/+2
| | | | Thanks to bmispelon and uruz for the initial patch.
* Fixed many spelling mistakes in code, comments, and docs.Josh Soref2015-12-031-1/+1
|
* Fixed #25254 -- Added JsonResponse json_dumps_params parameter.Sambhav Satija2015-08-121-0/+4
|
* Refs #24121 -- Added meaningful repr() to HttpResponse and subclasses.Keryn Knight2015-07-151-0/+10
|
* Fixed #25019 -- Added UUID support in DjangoJSONEncoderLukas Hetzenecker2015-06-241-0/+6
|
* Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette2015-05-201-5/+5
|