Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed #34484, Refs #34482 -- Reverted "Fixed #29186 -- Fixed pickling ↵ | Mariusz Felisiak | 2023-04-12 | 1 | -10/+0 |
| | | | | | | | | HttpRequest and subclasses." This reverts commit 6220c445c40a6a7f4d442de8bde2628346153963. Thanks Adam Johnson and Márton Salomváry for reports. | ||||
* | Refs #34233 -- Used str.removeprefix()/removesuffix(). | Mariusz Felisiak | 2023-01-18 | 1 | -1/+1 |
| | |||||
* | Fixed #33865 -- Optimized LimitedStream wrapper. | Nick Pope | 2023-01-05 | 1 | -45/+35 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current implementation of LimitedStream is slow because .read() performs an extra copy into a buffer and .readline() performs two extra copies. The stream being wrapped is already typically a BytesIO object so this is unnecessary. This implementation has largely been untouched for 12 years and, inspired by a simpler implementation in werkzeug, it was possible to achieve the following performance improvement: LimitedStream.read() (single line): Mean +- std dev: [bench_limitedstream-main] 286 ns +- 6 ns -> [bench_limitedstream-patch] 227 ns +- 6 ns: 1.26x faster LimitedStream.readline() (single line): Mean +- std dev: [bench_limitedstream-main] 507 ns +- 11 ns -> [bench_limitedstream-patch] 232 ns +- 8 ns: 2.18x faster LimitedStream.read(8192) (single line): Mean +- std dev: [bench_limitedstream-main] 360 ns +- 8 ns -> [bench_limitedstream-patch] 297 ns +- 6 ns: 1.21x faster LimitedStream.readline(8192) (single line): Mean +- std dev: [bench_limitedstream-main] 602 ns +- 10 ns -> [bench_limitedstream-patch] 305 ns +- 10 ns: 1.98x faster LimitedStream.read() (multiple lines): Mean +- std dev: [bench_limitedstream-main] 290 ns +- 5 ns -> [bench_limitedstream-patch] 236 ns +- 6 ns: 1.23x faster LimitedStream.readline() (multiple lines): Mean +- std dev: [bench_limitedstream-main] 517 ns +- 19 ns -> [bench_limitedstream-patch] 239 ns +- 7 ns: 2.16x faster LimitedStream.read(8192) (multiple lines): Mean +- std dev: [bench_limitedstream-main] 363 ns +- 8 ns -> [bench_limitedstream-patch] 311 ns +- 11 ns: 1.17x faster LimitedStream.readline(8192) (multiple lines): Mean +- std dev: [bench_limitedstream-main] 601 ns +- 12 ns -> [bench_limitedstream-patch] 308 ns +- 7 ns: 1.95x faster Geometric mean: 1.59x faster | ||||
* | Updated documentation and comments for RFC updates. | Nick Pope | 2022-11-10 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | - 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 #29186 -- Fixed pickling HttpRequest and subclasses. | Anvesh Mishra | 2022-09-14 | 1 | -0/+10 |
| | |||||
* | Fixed #33755 -- Moved ASGI body-file cleanup into request class. | Jonas Lundberg | 2022-06-09 | 1 | -0/+3 |
| | |||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 1 | -33/+38 |
| | |||||
* | Removed unused buf_size argument to LimitedStream(). | Nick Pope | 2022-01-18 | 1 | -2/+1 |
| | | | Unused since its introduction in 269e921756371bee6d35a967bc2ffe84d1ae39eb. | ||||
* | Fixed 32956 -- Lowercased spelling of "web" and "web framework" where ↵ | David Smith | 2021-07-29 | 1 | -1/+1 |
| | | | | appropriate. | ||||
* | Fixed #31240 -- Properly closed FileResponse when wsgi.file_wrapper is used. | Florian Apolloner | 2020-02-11 | 1 | -0/+4 |
| | | | | Thanks to Oskar Persson for the report. | ||||
* | Fixed #30899 -- Lazily compiled import time regular expressions. | Hasan Ramezani | 2019-10-29 | 1 | -2/+2 |
| | |||||
* | Fixed #30567 -- Made WSGIHandler pass FileResponse.block_size to ↵ | Piotr Domanski | 2019-07-26 | 1 | -1/+1 |
| | | | | wsgi.file_wrapper. | ||||
* | Refs #30451 -- Added HttpRequest._set_content_type_params() hook. | Mariusz Felisiak | 2019-06-15 | 1 | -10/+2 |
| | |||||
* | Refs #28909 -- Simplifed code using unpacking generalizations. | Sergey Fedoseev | 2018-09-28 | 1 | -3/+4 |
| | |||||
* | Refs #29784 -- Switched to https:// links where available. | Jon Dufresne | 2018-09-26 | 1 | -1/+1 |
| | |||||
* | Removed unused HttpRequest._post_parse_error attribute. | Josh Schneier | 2018-06-07 | 1 | -1/+0 |
| | | | Unused since 8f8c54f70bfa3aa8e311514297f1eeded2c32593. | ||||
* | Fixed #28982 -- Simplified code with and/or. | Дилян Палаузов | 2018-01-03 | 1 | -3/+1 |
| | |||||
* | Fixed #28769 -- Replaced 'x if x else y' with 'x or y'. | Дилян Палаузов | 2017-11-07 | 1 | -7/+3 |
| | |||||
* | Refs #27795 -- Removed unneeded force_text calls | Claude Paroz | 2017-03-04 | 1 | -2/+2 |
| | | | | Thanks Tim Graham for the review. | ||||
* | Imported django.http classes instead of django.http. | Asif Saifuddin Auvi | 2017-02-27 | 1 | -4/+4 |
| | |||||
* | Refs #27656 -- Updated django.core docstring verbs according to PEP 257. | Anton Samarchyan | 2017-02-21 | 1 | -9/+4 |
| | |||||
* | Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode(). | Tim Graham | 2017-02-09 | 1 | -6/+4 |
| | |||||
* | Refs #23919, #27778 -- Removed obsolete mentions of unicode. | Vytis Banaitis | 2017-01-26 | 1 | -1/+1 |
| | |||||
* | Refs #23919 -- Replaced super(ClassName, self) with super(). | chillaranand | 2017-01-25 | 1 | -1/+1 |
| | |||||
* | Refs #23919 -- Removed unneeded str() calls | Claude Paroz | 2017-01-20 | 1 | -4/+4 |
| | |||||
* | Refs #23919 -- Removed unneeded force_str calls | Claude Paroz | 2017-01-20 | 1 | -6/+3 |
| | |||||
* | Refs #23919 -- Stopped inheriting from object to define new style classes. | Simon Charette | 2017-01-19 | 1 | -1/+1 |
| | |||||
* | Refs #23919 -- Removed six.PY2/PY3 usage | Claude Paroz | 2017-01-18 | 1 | -10/+7 |
| | | | | Thanks Tim Graham for the review. | ||||
* | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | 2017-01-18 | 1 | -2/+0 |
| | |||||
* | Replaced property() usage with decorator in several places. | Berker Peksag | 2016-08-25 | 1 | -2/+2 |
| | |||||
* | Removed a blank line per isort. | Tim Graham | 2016-08-24 | 1 | -1/+0 |
| | |||||
* | Fixed #26971 -- Prevented crash with non-UTF-8 incoming PATH_INFO | Claude Paroz | 2016-08-23 | 1 | -19/+7 |
| | | | | Thanks Tim Graham and Loïc Bistuer for the reviews. | ||||
* | Fixed #26546 -- Allowed HTTPStatus enum values for HttpResponse.status. | David Evans | 2016-04-29 | 1 | -1/+1 |
| | |||||
* | Fixed E128 flake8 warnings in django/. | Tim Graham | 2016-04-08 | 1 | -1/+2 |
| | |||||
* | Fixed #26452 -- Loaded middleware on server start rather than on first request. | David Evans | 2016-04-04 | 1 | -10/+4 |
| | |||||
* | Fixed #26014 -- Added WSGIRequest content_type and content_params attributes. | Curtis Maloney | 2016-02-10 | 1 | -4/+4 |
| | | | | Parsed the CONTENT_TYPE header once and recorded it on the request. | ||||
* | Fixed #26013 -- Moved django.core.urlresolvers to django.urls. | Marten Kenbeek | 2015-12-31 | 1 | -1/+1 |
| | | | | Thanks to Tim Graham for the review. | ||||
* | Fixed #25779 -- Removed redundant try block in WSGIHandler | Attila Tovt | 2015-11-20 | 1 | -8/+3 |
| | |||||
* | Fixed #25682 -- Removed bare except clauses. | Attila Tovt | 2015-11-17 | 1 | -1/+1 |
| | |||||
* | Refs #17133 -- Optimized script_url handling in get_script_name | Claude Paroz | 2015-10-27 | 1 | -3/+4 |
| | | | | | | 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 incoming requests | Claude Paroz | 2015-10-23 | 1 | -0/+6 |
| | | | | Thanks gjanee@ucop.edu for the report and Tim Graham for the review. | ||||
* | Fixed #23173 -- Fixed incorrect stripping of SCRIPT_URL | Bas Peschier | 2015-03-08 | 1 | -1/+1 |
| | |||||
* | Sorted imports with isort; refs #23860. | Tim Graham | 2015-02-06 | 1 | -1/+1 |
| | |||||
* | Fixed #24137 -- Switched to HTTP reason phrases from Python stdlib. | Jon Dufresne | 2015-01-28 | 1 | -3/+0 |
| | |||||
* | Removed request.REQUEST per deprecation timeline; refs #18659. | Tim Graham | 2015-01-17 | 1 | -11/+0 |
| | |||||
* | Fixed #24072 -- Added FileResponse for streaming binary files. | Collin Anderson | 2015-01-05 | 1 | -0/+2 |
| | |||||
* | Fixed #19508 -- Implemented uri_to_iri as per RFC. | Anubhav Joshi | 2014-10-16 | 1 | -7/+4 |
| | | | | | Thanks Loic Bistuer for helping in shaping the patch and Claude Paroz for the review. | ||||
* | Fixed #23638 -- Prevented crash while parsing invalid cookie content | Claude Paroz | 2014-10-13 | 1 | -1/+1 |
| | | | | Thanks Philip Gatt for the report and Tim Graham for the review. | ||||
* | Fixed #21483 -- Added WSGI environ to kwargs sent to request_started signal. | Joshua "jag" Ginsberg | 2014-08-29 | 1 | -1/+1 |
| | |||||
* | Fixed #18314 -- Corrected request.build_absolute_uri() handling of paths ↵ | Unai Zalakain | 2014-06-07 | 1 | -1/+5 |
| | | | | | | | | | | | 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. |