Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/core/handlers
Commit message (Collapse)AuthorAgeFilesLines
* Refs #17133 -- Optimized script_url handling in ↵Claude Paroz2015-10-271-3/+4
| | | | | | | | get_script_name 10ace52a added some regex processing for each request with SCRIPT_URL set. In a speed critical section, conditionally apply of the regex will save some resources.
* Fixed #17133 -- Properly handled successive slashes in ↵Claude Paroz2015-10-231-0/+6
| | | | | | incoming requests Thanks gjanee@ucop.edu for the report and Tim Graham for the review.
* Fixed "URLconf" spelling in code comments.Tim Graham2015-10-221-1/+1
|
* Fixed #24877 -- Added middleware handling of ↵Sylvain Fankhauser2015-07-031-10/+17
| | | | response.render() errors.
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-241-3/+3
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Fixed #14200 -- Added a fallback if HttpRequest.urlconf ↵Marten Kenbeek2015-06-211-2/+2
| | | | | | | | is None. Made BaseHandler fall back to settings.ROOT_URLCONF if HttpRequest.urlconf is set to None, rather than raising ImproperlyConfigured.
* Fixed #24829 -- Allowed use of TemplateResponse in view ↵ana-balica2015-06-171-0/+9
| | | | error handlers.
* Fixed #24733 -- Passed the triggering exception to 40x ↵Claude Paroz2015-05-111-8/+21
| | | | | | error handlers Thanks Tim Graham for the review.
* Extended variable name in handlers/base.pyClaude Paroz2015-05-051-5/+5
| | | | Refs #24733.
* Fixed #23960 -- Removed http.fix_location_headerClaude Paroz2015-03-181-1/+0
| | | | Thanks Carl Meyer for the report and Tim Graham for the review.
* Fixed #23173 -- Fixed incorrect stripping of SCRIPT_URLBas Peschier2015-03-081-1/+1
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-062-5/+6
|
* Fixed #24137 -- Switched to HTTP reason phrases from ↵Jon Dufresne2015-01-281-3/+0
| | | | Python stdlib.
* Removed request.REQUEST per deprecation timeline; refs ↵Tim Graham2015-01-171-11/+0
| | | | #18659.
* Fixed #24072 -- Added FileResponse for streaming binary ↵Collin Anderson2015-01-051-0/+2
| | | | files.
* Fixed #14664 -- Logged a warning if MiddlewareNotUsed is ↵Berker Peksag2014-11-271-1/+6
| | | | raised in DEBUG mode.
* Fixed #23887 -- Returned Bad Request for multipart ↵Claude Paroz2014-11-221-0/+10
| | | | | | | parsing fails Thanks Antti Häyrynen and Tim Graham for the report, and Aymeric Augustin for the review.
* Fixed #19508 -- Implemented uri_to_iri as per RFC.Anubhav Joshi2014-10-151-7/+4
| | | | | Thanks Loic Bistuer for helping in shaping the patch and Claude Paroz for the review.
* Fixed #23638 -- Prevented crash while parsing invalid ↵Claude Paroz2014-10-131-1/+1
| | | | | | cookie content Thanks Philip Gatt for the report and Tim Graham for the review.
* Limited lines to 119 characters in django/Tim Graham2014-09-051-1/+5
| | | | refs #23395.
* Fixed #21483 -- Added WSGI environ to kwargs sent to ↵Joshua "jag" Ginsberg2014-08-291-1/+1
| | | | request_started signal.
* Fixed #21668 -- Return detailed error page when ↵Anubhav Joshi2014-06-241-0/+2
| | | | | | | | SuspiciousOperation is raised and DEBUG=True Thanks GDorn and gox21 for report. Thanks Tim Graham for idea and review.
* Refactored common code in handlers/base.py and ↵Anubhav Joshi2014-06-231-23/+14
| | | | urlresolvers.py
* Fixed #22680 -- I/O operation on closed file.Florian Apolloner2014-06-111-0/+2
| | | | | | | 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 #6992 -- Improved error when middleware omits ↵Aymeric Augustin2014-06-071-0/+12
| | | | | | HttpResponse. Thanks guettli for the report.
* Fixed #18314 -- Corrected request.build_absolute_uri() ↵Unai Zalakain2014-06-071-1/+5
| | | | | | | | | | | handling of paths 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.
* Dropped fix_IE_for_vary/attach.Aymeric Augustin2014-05-141-2/+0
| | | | This is a security fix. Disclosure following shortly.
* Fixed #21188 -- Introduced subclasses for ↵Claude Paroz2014-03-081-1/+2
| | | | | | | to-be-removed-in-django-XX warnings Thanks Anssi Kääriäinen for the idea and Simon Charette for the review.
* Fixed many typos in comments and docstrings.Rodolfo Carvalho2014-03-031-1/+1
| | | | Thanks Piotr Kasprzyk for help with the patch.
* Fixed #21912 -- Improved error message if a view returns ↵Aaron France2014-02-151-1/+2
| | | | | | None. Thanks brycenesbitt for the report.
* Replace _parse_content_type with cgi.parse_headerCurtis2014-02-091-16/+2
|
* Fixed #21674 -- Deprecated the import_by_path() function ↵Berker Peksag2014-02-081-2/+2
| | | | | | in favor of import_string(). Thanks Aymeric Augustin for the suggestion and review.
* Use cached_property for request.GET and request.COOKIESCurtis2013-12-241-19/+10
|
* Fixed #21383 -- Added request details in ↵Claude Paroz2013-11-091-1/+6
| | | | SuspiciousOperation messages
* Fixed all E261 warningscoagulant2013-11-022-3/+3
|
* Fixed #21302 -- Fixed unused imports and import *.Tim Graham2013-11-021-1/+1
|
* Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol2013-10-211-4/+4
|
* Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol2013-10-181-1/+0
|
* Fixed #18659 -- Deprecated request.REQUEST and MergeDictBouke Haarsma2013-10-171-0/+3
| | | | Thanks Aymeric Augustin for the suggestion.
* Fixed #7603 -- Added a 'scheme' property to the ↵Unai Zalakain2013-10-151-2/+2
| | | | | | | | | | | | | | | | | | | HttpRequest object `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 #20557 -- Properly decoded non-ASCII cookies on ↵Aymeric Augustin2013-09-071-2/+16
| | | | | | | | | Python 3. Thanks mitsuhiko for the report. Non-ASCII values are supported. Non-ASCII keys still aren't, because the current parser mangles them. That's another bug.
* Minor cleanup in the WSGI handler.Aymeric Augustin2013-09-071-3/+3
|
* Refactored the unmangling of the WSGI environ.Aymeric Augustin2013-09-071-14/+29
|
* Moved two WSGI-specific functions to the WSGI handler.Aymeric Augustin2013-09-072-46/+48
| | | | They were defined in base when the mod_python handler used them. See bfcecbff.
* Fixed a number of lint warnings, particularly around ↵Alex Gaynor2013-08-041-1/+1
| | | | unused variables.
* Fixed missing initializations in WSGIRequest. Refs #20619Loic Bistuer2013-06-261-0/+1
|
* Fixed #19866 -- Added security logger and return 400 for ↵Preston Holmes2013-05-261-2/+18
| | | | | | | | | | | | SuspiciousOperation. SuspiciousOperations have been differentiated into subclasses, and are now logged to a 'django.security.*' logger. SuspiciousOperations that reach django.core.handlers.base.BaseHandler will now return a 400 instead of a 500. Thanks to tiwoc for the report, and Carl Meyer and Donald Stufft for review.
* Changed API to disable ATOMIC_REQUESTS per view.Aymeric Augustin2013-05-191-4/+5
| | | | | | | A decorator is easier to apply to CBVs. Backwards compatibility isn't an issue here, except for people running on a recent clone of master. Fixed a few minor problems in the transactions docs while I was there.
* Fixed #12747 -- Made reason phrases customizable.Aymeric Augustin2013-05-191-63/+4
|
* Added an HTTP status code to Django's WSGI application ↵Alex Gaynor2013-05-081-0/+1
| | | | that was missing (reason unknown).