| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2025-02-18 | Refs #36005 -- Used datetime.UTC alias instead of datetime.timezone.utc. | Mariusz Felisiak | |
| datetime.UTC was added in Python 3.11. | |||
| 2023-06-10 | Added tests for HttpResponseBase.charset/reason_phrase setters. | XDEv11 | |
| 2023-03-14 | Fixed #34405 -- Fixed setting Content-Type header in FileResponse for ↵ | Mariusz Felisiak | |
| compress and brotli. Thanks Chamal De Silva for the report. | |||
| 2023-02-07 | Removed hardcoded date in SetCookieTests.test_far_expiration(). | Bernhard M. Wiedemann | |
| Follow up to a92c83828785f12dcf90477413c2d04e1855fbb9. | |||
| 2022-08-03 | Fixed CVE-2022-36359 -- Escaped filename in Content-Disposition header. | Carlton Gibson | |
| Thanks to Motoyasu Saburi for the report. | |||
| 2022-03-24 | Refs #32365 -- Removed internal uses of utils.timezone.utc alias. | Carlton Gibson | |
| Remaining test case ensures that uses of the alias are mapped canonically by the migration writer. | |||
| 2022-03-09 | Fixed #33567 -- Avoided setting default text/html content type on responses. | Claude Paroz | |
| 2022-03-07 | Refs #33562 -- Made HttpResponse.set_cookie() raise ValueError when both ↵ | Luke Plant | |
| "expires" and "max_age" are passed. This fixes the case where you might pass set_cookie(expires=val, max_age=val) and max_age is silently ignored. | |||
| 2022-03-07 | Fixed #33562 -- Made HttpResponse.set_cookie() support timedelta for the ↵ | Luke Plant | |
| max_age argument. | |||
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 2021-10-14 | Refs #30509 -- Adjusted FileResponse test to close file earlier. | Piotr Kunicki | |
| 2021-10-14 | Fixed #30509 -- Made FileResponse better handle buffers and non-zero file ↵ | Piotr Kunicki | |
| offsets. | |||
| 2021-10-14 | Refs #30509 -- Increased FileResponse test coverage. | Piotr Kunicki | |
| Split tests by behavior, e.g. header, and added additional tests. | |||
| 2021-06-22 | Refs #24121 -- Added __repr__() to StreamingHttpResponse and subclasses. | Nicolas Restrepo | |
| 2021-05-12 | Fixed #32366 -- Updated datetime module usage to recommended approach. | Nick Pope | |
| - Replaced datetime.utcnow() with datetime.now(). - Replaced datetime.utcfromtimestamp() with datetime.fromtimestamp(). - Replaced datetime.utctimetuple() with datetime.timetuple(). - Replaced calendar.timegm() and datetime.utctimetuple() with datetime.timestamp(). | |||
| 2020-09-14 | Fixed #31789 -- Added a new headers interface to HttpResponse. | Tom Carrick | |
| 2020-09-05 | Fixed #31982 -- Made HttpResponse.set_cookie() cast max_age argument to an ↵ | Hasan Ramezani | |
| integer. | |||
| 2020-07-16 | Fixed #31790 -- Fixed setting SameSite and Secure cookies flags in ↵ | Mariusz Felisiak | |
| 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. | |||
| 2020-05-04 | Changed `'%s' % value` pattern to `str(value)`. | Nick Pope | |
| 2020-04-20 | Capitalized Unicode in docs, strings, and comments. | Jon Dufresne | |
| 2020-02-11 | Reverted "Fixed #30565 -- Closed HttpResponse when wsgi.file_wrapper closes ↵ | Florian Apolloner | |
| file-like object." This reverts commit cce47ff65a4dd3786c049ec14ee889e128ca7de9. | |||
| 2019-12-12 | Fixed #30862 -- Allowed setting SameSite cookies flags to 'none'. | Osaetin Daniel | |
| Thanks Florian Apolloner and Carlton Gibson for reviews. | |||
| 2019-10-29 | Used more specific unittest assertions in tests. | Nick Pope | |
| * assertIsNone()/assertIsNotNone() instead of comparing to None. * assertLess() for < comparisons. * assertIs() for 'is' expressions. * assertIsInstance() for isinstance() expressions. * rounding of assertAlmostEqual() for round() expressions. * assertIs(..., True/False) instead of comparing to True/False. * assertIs()/assertIsNot() for ==/!= comparisons. * assertNotEqual() for == comparisons. * assertTrue()/assertFalse() instead of comparing to True/False. | |||
| 2019-06-20 | Fixed #30565 -- Closed HttpResponse when wsgi.file_wrapper closes file-like ↵ | Chris Jerdonek | |
| object. | |||
| 2019-05-17 | Fixed #30196 -- Made FileResponse set Content-Disposition inline if filename ↵ | ShingenPizza | |
| is available. | |||
| 2019-02-14 | Made a requests test that will fail in 2028 fail 10 years later. | Bernhard M. Wiedemann | |
| 2038 is chosen for compatibility with 32-bit systems. | |||
| 2019-01-28 | Fixed #30137 -- Replaced OSError aliases with the canonical OSError. | Jon Dufresne | |
| Used more specific errors (e.g. FileExistsError) as appropriate. | |||
| 2018-09-01 | Refs #16470 -- Fixed typo in a FileResponse test. | James Aylett | |
| 2018-05-15 | Fixed #16470 -- Allowed FileResponse to auto-set some Content headers. | Claude Paroz | |
| Thanks Simon Charette, Jon Dufresne, and Tim Graham for the reviews. | |||
| 2018-04-13 | Fixed #27863 -- Added support for the SameSite cookie flag. | Alex Gaynor | |
| Thanks Alex Gaynor for contributing to the patch. | |||
| 2018-01-08 | Fixed #28989 -- Fixed HttpResponse.delete_cookie() for cookies that use ↵ | Alvin Lindstam | |
| __Secure/Host prefixes. | |||
| 2018-01-08 | Moved HttpResponse.set_cookie() tests to an appropriate location. | Tim Graham | |
| 2017-01-18 | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | |
| 2016-12-27 | Fixed #27640 -- Fixed HttpResponse's __repr__() without a 'Content-Type' ↵ | roboslone | |
| header. | |||
| 2016-08-30 | Fixed #27153 -- Added validation for HttpResponse status. | Ryan Allen | |
| 2016-01-29 | Refs #26022 -- Used context manager version of assertRaises in tests. | Hasan | |
| 2015-12-14 | Fixed #25725 -- Made HttpReponse immediately close objects. | Johannes Hoppe | |
| 2015-10-21 | Fixed #25576 -- Added IOBase methods required by TextIOWrapper to HttpResponse. | Jon Dufresne | |
| 2015-07-15 | Refs #24121 -- Added meaningful repr() to HttpResponse and subclasses. | Keryn Knight | |
| 2015-03-12 | Fixed #24139 -- Changed HttpResponse.reason_phrase to evaluate based on ↵ | Jon Dufresne | |
| status_code. | |||
| 2015-01-28 | Fixed #24137 -- Switched to HTTP reason phrases from Python stdlib. | Jon Dufresne | |
| 2014-12-11 | Fixed #23977 -- Added setdefault() method to HttpResponse | Sergey Parkhomenko | |
| 2014-11-03 | Fixed #18523 -- Added stream-like API to HttpResponse. | Michael Kelly | |
| Added getvalue() to HttpResponse to return the content of the response, along with a few other methods to partially match io.IOBase. Thanks Claude Paroz for the suggestion and Nick Sanford for review. | |||
| 2014-08-19 | Fixed #10190 -- Made HttpResponse charset customizable. | Unai Zalakain | |
| Thanks to Simon Charette, Aymeric Augustin, and Tim Graham for reviews and contributions. | |||
| 2013-12-17 | Removed superfluous models.py files. | Aymeric Augustin | |
| Added comments in the three empty models.py files that are still needed. Adjusted the test runner to add applications corresponding to test labels to INSTALLED_APPS even when they don't have a models module. | |||
| 2013-11-02 | Fixing E302 Errors | Jason Myers | |
| Signed-off-by: Jason Myers <jason@jasonamyers.com> | |||
| 2013-05-19 | Fixed #12747 -- Made reason phrases customizable. | Aymeric Augustin | |
