summaryrefslogtreecommitdiff
path: root/django/http/request.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Refs #23919 -- Removed most of remaining six usageClaude Paroz2017-01-181-5/+3
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Removed six.<various>_types usageClaude Paroz2017-01-181-1/+1
| | | | Thanks Tim Graham and Simon Charette for the reviews.
* Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz2017-01-181-19/+10
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-2/+0
|
* Fixed #27181 -- Allowed contrib.sites to match domains with trailing ".".Anton Samarchyan2016-11-291-5/+4
|
* Fixed #27156 -- Made changing HttpRequest.encoding clear GET.PREMANAND2016-11-171-2/+2
|
* Fixed CVE-2016-9014 -- Validated Host header when DEBUG=True.Tim Graham2016-11-011-4/+5
| | | | This is a security fix.
* Replaced smart_* by force_* calls whenever possibleClaude Paroz2016-09-031-1/+1
| | | | | The smart_* version should only be used when a lazy string should keep its lazy status.
* Fixed #27046 -- Supported IPv6-formatted IPv4 addresses in host validation.Tim Graham2016-08-111-1/+1
| | | | Thanks LaMont Jones for the report and patch.
* Fixed #27005 -- Fixed crash if request.META[''CONTENT_LENGTH']=''.Tim Graham2016-08-031-1/+1
|
* Fixed #26707 -- Added QueryDict.fromkeys()wim glenn2016-06-061-0/+13
|
* Fixed #21231 -- Enforced a max size for GET/POST values read into memory.Andre Cruz2016-05-121-8/+19
| | | | Thanks Tom Christie for review.
* Refs #22897 -- Removed unneeded empty string QueryDict argument.Tim Graham2016-05-031-4/+4
|
* Fixed #26014 -- Added WSGIRequest content_type and content_params attributes.Curtis Maloney2016-02-101-2/+4
| | | | Parsed the CONTENT_TYPE header once and recorded it on the request.
* Fixed #26125 -- Fixed E731 flake warnings.userimack2016-01-251-2/+5
|
* Fixed #24496 -- Added CSRF Referer checking against CSRF_COOKIE_DOMAIN.Matt Robenolt2015-09-161-9/+2
| | | | | Thanks Seth Gottlieb for help with the documentation and Carl Meyer and Joshua Kehn for reviews.
* Fixed #25099 -- Fixed crash in AdminEmailHandler on DisallowedHost.Vlastimil Zíma2015-09-041-2/+21
|
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-311-2/+0
|
* Fixed #25211 -- Added HttpRequest.get_port() and USE_X_FORWARDED_PORT setting.Matt Robenolt2015-08-041-1/+9
|
* Fixed #25099 -- Cleaned up HttpRequest representations in error reporting.Vlastimil Zíma2015-07-131-47/+0
|
* Removed unnecessary arguments in .get method callsPiotr Jakimiak2015-05-131-1/+1
|
* Fixed #19910 -- Added slash to i18n redirect if APPEND_SLASH is set.Bas Peschier2015-03-261-2/+3
| | | | | | This introduces a force_append_slash argument for request.get_full_path() which is used by RedirectFallbackMiddleware and CommonMiddleware when handling redirects for settings.APPEND_SLASH.
* Fixed #24463 -- Removed mod_python functionality from HttpRequest._get_scheme()Rik2015-03-111-5/+5
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-4/+5
|
* Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne2014-12-081-2/+2
| | | | comprehension
* Removed unused variable django.http.request.absolute_http_url_reMatt Robenolt2014-11-241-1/+0
|
* Fixed #12098 -- Simplified HttpRequest.__repr__().Berker Peksag2014-11-201-1/+5
|
* Fixed #18456 -- Added path escaping to HttpRequest.get_full_path().Unai Zalakain2014-11-031-2/+4
|
* Limited lines to 119 characters in django/Tim Graham2014-09-051-2/+7
| | | | refs #23395.
* Fixed #22996 -- Prevented crash with unencoded query stringClaude Paroz2014-08-191-3/+11
| | | | | Thanks Jorge Carleitao for the report and Aymeric Augustin, Tim Graham for the reviews.
* Added a space before explanation of "Invalid HTTP_HOST header: ..."Daniel Hahler2014-07-051-2/+2
|
* Fixed #22799 -- Made GET and POST on HttpRequest QueryDicts, and FILES a ↵Duncan Parkes2014-06-241-1/+6
| | | | | | | | | | | | | | | MultiValueDict. Previously, GET, POST, and FILES on an HttpRequest were created in the __init__ method as dictionaries. This was not something you would usually notice causing trouble in production as you'd only see a WSGIRequest, but in testing using the test client, calling .getlist on GET, POST, or FILES for a request with no get/post data resulted in an AttributeError. Changed GET and POST on an HttpRequest object to be mutable QueryDicts (mutable because the Django tests, and probably many third party tests, were expecting it).
* Fixed #22897 -- Made QueryDict query_string argument optional.Duncan Parkes2014-06-241-1/+1
| | | | Now QueryDict() is equivalent to QueryDict('') or QueryDict(None).
* Improved documentation for QueryDict.Duncan Parkes2014-06-241-3/+10
|
* Fixed #22680 -- I/O operation on closed file.Florian Apolloner2014-06-111-0/+6
| | | | | | | This patch is two-fold; first it ensure that Django does close everything in request.FILES at the end of the request and secondly the storage system should no longer close any files during save, it's up to the caller to handle that -- or let Django close the files at the end of the request.
* Fixed #18314 -- Corrected request.build_absolute_uri() handling of paths ↵Unai Zalakain2014-06-071-8/+19
| | | | | | | | | | | starting with // ``HttpRequest.build_absolute_uri()`` now correctly handles paths starting with ``//``. ``WSGIRequest`` now doesn't remove all the leading slashes either, because ``http://test/server`` and http://test//server`` aren't the same thing (RFC2396). Thanks to SmileyChris for the initial patch.
* Fix many many typos in comments throughout the codebaseAlex Gaynor2014-04-261-2/+2
|
* Replaced urllib/urlparse imports with from django.utils.six.moves.Tim Graham2014-03-311-5/+1
|
* Fixed E125 pep8 warningsChristopher Medrela2013-11-281-1/+1
|
* Fixed #21447 -- Restored code erroneously removed in ↵Baptiste Mispelon2013-11-161-1/+1
| | | | | | | | | | | 20472aa827669d2b83b74e521504e88e18d086a1. Also added some tests for HttpRequest.__repr__. Note that the added tests don't actually catch the accidental code removal (see ticket) but they do cover a codepath that wasn't tested before. Thanks to Tom Christie for the report and the original patch.
* Fixed all E261 warningscoagulant2013-11-021-7/+7
|
* Fixed #20338 -- Stripped ending dot during host validationClaude Paroz2013-10-241-0/+2
| | | | Thanks manfre for the report and Timo Graham for the review.
* Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol2013-10-181-2/+2
|
* Fixed #7603 -- Added a 'scheme' property to the HttpRequest objectUnai Zalakain2013-10-151-8/+11
| | | | | | | | | | | | | | | | | `HttpRequest.scheme` is `https` if `settings.SECURE_PROXY_SSL_HEADER` is appropriately set and falls back to `HttpRequest._get_scheme()` (a hook for subclasses to implement) otherwise. `WSGIRequest._get_scheme()` makes use of the `wsgi.url_scheme` WSGI environ variable to determine the request scheme. `HttpRequest.is_secure()` simply checks if `HttpRequest.scheme` is `https`. This provides a way to check the current scheme in templates, for example. It also allows us to deal with other schemes. Thanks nslater for the suggestion.
* Fixed #16822 -- Added RawPostDataExceptionTim Graham2013-10-081-1/+10
| | | | Thanks jaylett for the patch.
* Fixed #21189: Cleaned up usage of bare except clauses.Baptiste Mispelon2013-10-051-3/+3
| | | | | Thanks to berkerpeksag for the report and to claudep for the review.
* Fixed #19987 -- Disabled host validation when DEBUG=True.Will Hardy2013-07-311-2/+7
| | | | | | | | | | | The documentation promises that host validation is disabled when DEBUG=True, that all hostnames are accepted. Domains not compliant with RFC 1034/1035 were however being validated, this validation has now been removed when DEBUG=True. Additionally, when DEBUG=False a more detailed SuspiciousOperation exception message is provided when host validation fails because the hostname is not RFC 1034/1035 compliant.
* Removed most of absolute_import importsClaude Paroz2013-07-291-1/+1
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Fixed missing initializations in WSGIRequest. Refs #20619Loic Bistuer2013-06-261-0/+4
|
* Fixed #18481 -- Wrapped request.FILES read error in UnreadablePostErrorClaude Paroz2013-06-011-2/+8
| | | | | Thanks KyleMac for the report, André Cruz for the initial patch and Hiroki Kiyohara for the tests.