Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Refs #32074 -- Fixed handling memoryview content by HttpResponse on Python ↵ | Mariusz Felisiak | 2020-11-10 | 1 | -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 Carrick | 2020-10-07 | 1 | -6/+12 | |
| | ||||||
* | Fixed #30422 -- Made TemporaryFileUploadHandler handle interrupted uploads. | aryan | 2020-09-30 | 1 | -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 Carrick | 2020-09-14 | 1 | -50/+78 | |
| | ||||||
* | Refs #21231 -- Corrected parse_qsl() fallback. | Tim Graham | 2020-09-07 | 1 | -1/+1 | |
| | | | An oversight in fd209f62f1d83233cc634443cfac5ee4328d98b8. | |||||
* | Fixed #31982 -- Made HttpResponse.set_cookie() cast max_age argument to an ↵ | Hasan Ramezani | 2020-09-05 | 1 | -1/+1 | |
| | | | | integer. | |||||
* | Refs #21231 -- Backport urllib.parse.parse_qsl() from Python 3.8. | Nick Pope | 2020-09-03 | 1 | -6/+25 | |
| | ||||||
* | Fixed #31790 -- Fixed setting SameSite and Secure cookies flags in ↵ | Mariusz Felisiak | 2020-07-16 | 1 | -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 Brown | 2020-06-11 | 1 | -0/+2 | |
| | ||||||
* | Refs #30997 -- Improved HttpRequest.is_ajax() warning message with stacklevel=2. | Mariusz Felisiak | 2020-06-03 | 1 | -0/+1 | |
| | ||||||
* | Fixed E128, E741 flake8 warnings. | Mariusz Felisiak | 2020-05-12 | 1 | -1/+1 | |
| | ||||||
* | Refs #30116 -- Simplified regex match group access with Match.__getitem__(). | Jon Dufresne | 2020-05-11 | 1 | -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. | 007 | 2020-02-28 | 1 | -3/+3 | |
| | ||||||
* | Fixed #31240 -- Properly closed FileResponse when wsgi.file_wrapper is used. | Florian Apolloner | 2020-02-11 | 1 | -5/+7 | |
| | | | | Thanks to Oskar Persson for the report. | |||||
* | Reverted "Fixed #30565 -- Closed HttpResponse when wsgi.file_wrapper closes ↵ | Florian Apolloner | 2020-02-11 | 1 | -28/+0 | |
| | | | | | | file-like object." This reverts commit cce47ff65a4dd3786c049ec14ee889e128ca7de9. | |||||
* | Fixed #30997 -- Deprecated HttpRequest.is_ajax(). | Claude Paroz | 2020-01-27 | 1 | -0/+7 | |
| | ||||||
* | Refs #30997 -- Added HttpRequest.accepts(). | Claude Paroz | 2020-01-24 | 1 | -0/+51 | |
| | ||||||
* | Fixed #31114 -- Fixed HttpRequest.build_absolute_uri() crash with ↵ | Jon Dufresne | 2019-12-27 | 1 | -0/+3 | |
| | | | | reverse_lazy() locations. | |||||
* | Fixed #30862 -- Allowed setting SameSite cookies flags to 'none'. | Osaetin Daniel | 2019-12-12 | 1 | -2/+2 | |
| | | | | Thanks Florian Apolloner and Carlton Gibson for reviews. | |||||
* | Fixed #31010 -- Allowed subdomains of localhost in the Host header by ↵ | Gordon Pendleton | 2019-12-05 | 1 | -1/+1 | |
| | | | | default when DEBUG=True. | |||||
* | Fixed #30899 -- Lazily compiled import time regular expressions. | Hasan Ramezani | 2019-10-29 | 2 | -3/+4 | |
| | ||||||
* | Fixed CVE-2019-12781 -- Made HttpRequest always trust ↵ | Carlton Gibson | 2019-07-01 | 1 | -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 Jerdonek | 2019-06-20 | 1 | -0/+28 | |
| | | | | object. | |||||
* | Refs #30451 -- Added HttpRequest._set_content_type_params() hook. | Mariusz Felisiak | 2019-06-15 | 1 | -0/+13 | |
| | ||||||
* | Fixed #30196 -- Made FileResponse set Content-Disposition inline if filename ↵ | ShingenPizza | 2019-05-17 | 1 | -9/+11 | |
| | | | | is available. | |||||
* | Fixed #30310 -- Added support for looking up HttpHeaders.headers using ↵ | Troon | 2019-05-09 | 1 | -0/+4 | |
| | | | | underscores. | |||||
* | Refs #27753 -- Deprecated django.utils.text.unescape_entities(). | Jon Dufresne | 2019-05-08 | 1 | -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 Dufresne | 2019-04-24 | 1 | -2/+1 | |
| | ||||||
* | Fixed #30294 -- Allowed HttpResponse to accept memoryview content. | sage | 2019-03-29 | 1 | -1/+1 | |
| | ||||||
* | Refs #30227 -- Added helpful message for non-ASCII Content-Type in mulitpart ↵ | Tim Graham | 2019-03-02 | 1 | -1/+4 | |
| | | | | request. | |||||
* | Fixed #30227 -- Fixed crash on request without boundary in Content-Type. | Tim Graham | 2019-03-02 | 1 | -1/+1 | |
| | ||||||
* | Optimized iterator exhaustion using collections.deque(). | Nick Pope | 2019-02-14 | 1 | -3/+2 | |
| | ||||||
* | Refs #27753 -- Favored force/smart_str() over force/smart_text(). | Aymeric Augustin | 2019-02-06 | 2 | -6/+6 | |
| | ||||||
* | Fixed #30137 -- Replaced OSError aliases with the canonical OSError. | Jon Dufresne | 2019-01-28 | 2 | -7/+7 | |
| | | | | Used more specific errors (e.g. FileExistsError) as appropriate. | |||||
* | Refs #28137 -- Removed HttpRequest.xreadlines() per deprecation timeline. | Tim Graham | 2019-01-17 | 1 | -9/+0 | |
| | ||||||
* | Refs #27829 -- Removed settings.DEFAULT_CONTENT_TYPE per deprecation timeline. | Tim Graham | 2019-01-17 | 1 | -3/+2 | |
| | ||||||
* | Fixed #20147 -- Added HttpRequest.headers. | Santiago Basulto | 2019-01-16 | 1 | -1/+29 | |
| | ||||||
* | Normalized spelling of "lowercase" and "lowercased". | Jon Dufresne | 2018-09-25 | 2 | -3/+3 | |
| | ||||||
* | Refs #29784 -- Normalized Python docs links to omit the version. | Jon Dufresne | 2018-09-25 | 1 | -1/+1 | |
| | ||||||
* | Fixed #29627 -- Fixed QueryDict.urlencode() crash with non-string values. | Tim Graham | 2018-08-02 | 1 | -1/+1 | |
| | | | Regression in 7d96f0c49ab750799860e42716d7105e11de44de. | |||||
* | Fixed django/http/request.py docstring typo. | François Freitag | 2018-07-16 | 1 | -1/+1 | |
| | ||||||
* | Simplified HttpRequest.__iter__(). | Sergey Fedoseev | 2018-07-10 | 1 | -5/+1 | |
| | ||||||
* | Removed unused HttpRequest._post_parse_error attribute. | Josh Schneier | 2018-06-07 | 1 | -5/+0 | |
| | | | Unused since 8f8c54f70bfa3aa8e311514297f1eeded2c32593. | |||||
* | Fixed #16470 -- Allowed FileResponse to auto-set some Content headers. | Claude Paroz | 2018-05-15 | 1 | -8/+53 | |
| | | | Thanks Simon Charette, Jon Dufresne, and Tim Graham for the reviews. | |||||
* | Fixed #27863 -- Added support for the SameSite cookie flag. | Alex Gaynor | 2018-04-13 | 2 | -1/+8 | |
| | | | Thanks Alex Gaynor for contributing to the patch. | |||||
* | Refs #27795 -- Replaced force_bytes() usage in django.http. | Tim Graham | 2018-02-07 | 2 | -9/+9 | |
| | ||||||
* | Fixed #28828 -- Improved performance of HttpRequest.build_absolute_uri(). | George-Cristian Bîrzan | 2018-01-10 | 1 | -7/+21 | |
| | ||||||
* | Fixed #28989 -- Fixed HttpResponse.delete_cookie() for cookies that use ↵ | Alvin Lindstam | 2018-01-08 | 1 | -2/+7 | |
| | | | | __Secure/Host prefixes. | |||||
* | Fixed #28982 -- Simplified code with and/or. | Дилян Палаузов | 2018-01-03 | 1 | -5/+3 | |
| | ||||||
* | Fixed #28965 -- Updated Set-Cookie's Expires date format to follow RFC 7231. | Alexey | 2018-01-02 | 1 | -4/+3 | |
| |