summaryrefslogtreecommitdiff
path: root/django/http
Commit message (Collapse)AuthorAgeFilesLines
...
* Refs #32074 -- Fixed handling memoryview content by HttpResponse on Python ↵Mariusz Felisiak2020-11-101-1/+4
| | | | | | | | | 3.10+. An iterator was added to memoryview in Python 3.10, see https://bugs.python.org/issue41732 Refs #30294
* Fixed #32002 -- Added headers parameter to HttpResponse and subclasses.Tom Carrick2020-10-071-6/+12
|
* Fixed #30422 -- Made TemporaryFileUploadHandler handle interrupted uploads.aryan2020-09-301-0/+7
| | | | | | This patch allows upload handlers to handle interrupted uploads. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #31789 -- Added a new headers interface to HttpResponse.Tom Carrick2020-09-141-50/+78
|
* Refs #21231 -- Corrected parse_qsl() fallback.Tim Graham2020-09-071-1/+1
| | | An oversight in fd209f62f1d83233cc634443cfac5ee4328d98b8.
* Fixed #31982 -- Made HttpResponse.set_cookie() cast max_age argument to an ↵Hasan Ramezani2020-09-051-1/+1
| | | | integer.
* Refs #21231 -- Backport urllib.parse.parse_qsl() from Python 3.8.Nick Pope2020-09-031-6/+25
|
* Fixed #31790 -- Fixed setting SameSite and Secure cookies flags in ↵Mariusz Felisiak2020-07-161-5/+10
| | | | | | | | HttpResponse.delete_cookie(). Cookies with the "SameSite" flag set to None and without the "secure" flag will be soon rejected by latest browser versions. This affects sessions and messages cookies.
* Fixed #28132 -- Made MultiPartParser ignore filenames with trailing slash.Michael Brown2020-06-111-0/+2
|
* Refs #30997 -- Improved HttpRequest.is_ajax() warning message with stacklevel=2.Mariusz Felisiak2020-06-031-0/+1
|
* Fixed E128, E741 flake8 warnings.Mariusz Felisiak2020-05-121-1/+1
|
* Refs #30116 -- Simplified regex match group access with Match.__getitem__().Jon Dufresne2020-05-111-1/+1
| | | | | The method has been available since Python 3.6. The shorter syntax is also marginally faster.
* Fixed #31293 -- Allowed MultiPartParser to handle double-quoted encoded headers.0072020-02-281-3/+3
|
* Fixed #31240 -- Properly closed FileResponse when wsgi.file_wrapper is used.Florian Apolloner2020-02-111-5/+7
| | | | Thanks to Oskar Persson for the report.
* Reverted "Fixed #30565 -- Closed HttpResponse when wsgi.file_wrapper closes ↵Florian Apolloner2020-02-111-28/+0
| | | | | | file-like object." This reverts commit cce47ff65a4dd3786c049ec14ee889e128ca7de9.
* Fixed #30997 -- Deprecated HttpRequest.is_ajax().Claude Paroz2020-01-271-0/+7
|
* Refs #30997 -- Added HttpRequest.accepts().Claude Paroz2020-01-241-0/+51
|
* Fixed #31114 -- Fixed HttpRequest.build_absolute_uri() crash with ↵Jon Dufresne2019-12-271-0/+3
| | | | reverse_lazy() locations.
* Fixed #30862 -- Allowed setting SameSite cookies flags to 'none'.Osaetin Daniel2019-12-121-2/+2
| | | | Thanks Florian Apolloner and Carlton Gibson for reviews.
* Fixed #31010 -- Allowed subdomains of localhost in the Host header by ↵Gordon Pendleton2019-12-051-1/+1
| | | | default when DEBUG=True.
* Fixed #30899 -- Lazily compiled import time regular expressions.Hasan Ramezani2019-10-292-3/+4
|
* Fixed CVE-2019-12781 -- Made HttpRequest always trust ↵Carlton Gibson2019-07-011-3/+4
| | | | | | | | | | | | | | | SECURE_PROXY_SSL_HEADER if set. An HTTP request would not be redirected to HTTPS when the SECURE_PROXY_SSL_HEADER and SECURE_SSL_REDIRECT settings were used if the proxy connected to Django via HTTPS. HttpRequest.scheme will now always trust the SECURE_PROXY_SSL_HEADER if set, rather than falling back to the request scheme when the SECURE_PROXY_SSL_HEADER did not have the secure value. Thanks to Gavin Wahl for the report and initial patch suggestion, and Shai Berger for review.
* Fixed #30565 -- Closed HttpResponse when wsgi.file_wrapper closes file-like ↵Chris Jerdonek2019-06-201-0/+28
| | | | object.
* Refs #30451 -- Added HttpRequest._set_content_type_params() hook.Mariusz Felisiak2019-06-151-0/+13
|
* Fixed #30196 -- Made FileResponse set Content-Disposition inline if filename ↵ShingenPizza2019-05-171-9/+11
| | | | is available.
* Fixed #30310 -- Added support for looking up HttpHeaders.headers using ↵Troon2019-05-091-0/+4
| | | | underscores.
* Refs #27753 -- Deprecated django.utils.text.unescape_entities().Jon Dufresne2019-05-081-2/+2
| | | | | | | The function was undocumented and only required for compatibility with Python 2. Code should use Python's html.unescape() that was added in Python 3.4.
* Removed unnecessary assignments in various code.Jon Dufresne2019-04-241-2/+1
|
* Fixed #30294 -- Allowed HttpResponse to accept memoryview content.sage2019-03-291-1/+1
|
* Refs #30227 -- Added helpful message for non-ASCII Content-Type in mulitpart ↵Tim Graham2019-03-021-1/+4
| | | | request.
* Fixed #30227 -- Fixed crash on request without boundary in Content-Type.Tim Graham2019-03-021-1/+1
|
* Optimized iterator exhaustion using collections.deque().Nick Pope2019-02-141-3/+2
|
* Refs #27753 -- Favored force/smart_str() over force/smart_text().Aymeric Augustin2019-02-062-6/+6
|
* Fixed #30137 -- Replaced OSError aliases with the canonical OSError.Jon Dufresne2019-01-282-7/+7
| | | | Used more specific errors (e.g. FileExistsError) as appropriate.
* Refs #28137 -- Removed HttpRequest.xreadlines() per deprecation timeline.Tim Graham2019-01-171-9/+0
|
* Refs #27829 -- Removed settings.DEFAULT_CONTENT_TYPE per deprecation timeline.Tim Graham2019-01-171-3/+2
|
* Fixed #20147 -- Added HttpRequest.headers.Santiago Basulto2019-01-161-1/+29
|
* Normalized spelling of "lowercase" and "lowercased".Jon Dufresne2018-09-252-3/+3
|
* Refs #29784 -- Normalized Python docs links to omit the version.Jon Dufresne2018-09-251-1/+1
|
* Fixed #29627 -- Fixed QueryDict.urlencode() crash with non-string values.Tim Graham2018-08-021-1/+1
| | | Regression in 7d96f0c49ab750799860e42716d7105e11de44de.
* Fixed django/http/request.py docstring typo.François Freitag2018-07-161-1/+1
|
* Simplified HttpRequest.__iter__().Sergey Fedoseev2018-07-101-5/+1
|
* Removed unused HttpRequest._post_parse_error attribute.Josh Schneier2018-06-071-5/+0
| | | Unused since 8f8c54f70bfa3aa8e311514297f1eeded2c32593.
* Fixed #16470 -- Allowed FileResponse to auto-set some Content headers.Claude Paroz2018-05-151-8/+53
| | | Thanks Simon Charette, Jon Dufresne, and Tim Graham for the reviews.
* Fixed #27863 -- Added support for the SameSite cookie flag.Alex Gaynor2018-04-132-1/+8
| | | Thanks Alex Gaynor for contributing to the patch.
* Refs #27795 -- Replaced force_bytes() usage in django.http.Tim Graham2018-02-072-9/+9
|
* Fixed #28828 -- Improved performance of HttpRequest.build_absolute_uri().George-Cristian Bîrzan2018-01-101-7/+21
|
* Fixed #28989 -- Fixed HttpResponse.delete_cookie() for cookies that use ↵Alvin Lindstam2018-01-081-2/+7
| | | | __Secure/Host prefixes.
* Fixed #28982 -- Simplified code with and/or.Дилян Палаузов2018-01-031-5/+3
|
* Fixed #28965 -- Updated Set-Cookie's Expires date format to follow RFC 7231.Alexey2018-01-021-4/+3
|