Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed #34405 -- Fixed setting Content-Type header in FileResponse for ↵ | Mariusz Felisiak | 2023-03-14 | 1 | -0/+2 |
| | | | | | compress and brotli. Thanks Chamal De Silva for the report. | ||||
* | Removed hardcoded date in SetCookieTests.test_far_expiration(). | Bernhard M. Wiedemann | 2023-02-07 | 1 | -3/+10 |
| | | | | Follow up to a92c83828785f12dcf90477413c2d04e1855fbb9. | ||||
* | Fixed CVE-2022-36359 -- Escaped filename in Content-Disposition header. | Carlton Gibson | 2022-08-03 | 1 | -0/+35 |
| | | | | Thanks to Motoyasu Saburi for the report. | ||||
* | Refs #32365 -- Removed internal uses of utils.timezone.utc alias. | Carlton Gibson | 2022-03-24 | 1 | -4/+5 |
| | | | | | Remaining test case ensures that uses of the alias are mapped canonically by the migration writer. | ||||
* | Fixed #33567 -- Avoided setting default text/html content type on responses. | Claude Paroz | 2022-03-09 | 1 | -2/+4 |
| | |||||
* | Refs #33562 -- Made HttpResponse.set_cookie() raise ValueError when both ↵ | Luke Plant | 2022-03-07 | 1 | -0/+8 |
| | | | | | | | "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. | ||||
* | Fixed #33562 -- Made HttpResponse.set_cookie() support timedelta for the ↵ | Luke Plant | 2022-03-07 | 1 | -0/+5 |
| | | | | max_age argument. | ||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 3 | -156/+188 |
| | |||||
* | Refs #30509 -- Adjusted FileResponse test to close file earlier. | Piotr Kunicki | 2021-10-14 | 1 | -1/+2 |
| | |||||
* | Fixed #30509 -- Made FileResponse better handle buffers and non-zero file ↵ | Piotr Kunicki | 2021-10-14 | 1 | -6/+76 |
| | | | | offsets. | ||||
* | Refs #30509 -- Increased FileResponse test coverage. | Piotr Kunicki | 2021-10-14 | 1 | -22/+86 |
| | | | | Split tests by behavior, e.g. header, and added additional tests. | ||||
* | Refs #24121 -- Added __repr__() to StreamingHttpResponse and subclasses. | Nicolas Restrepo | 2021-06-22 | 1 | -0/+7 |
| | |||||
* | Fixed #32366 -- Updated datetime module usage to recommended approach. | Nick Pope | 2021-05-12 | 1 | -2/+2 |
| | | | | | | | - 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(). | ||||
* | Fixed #31789 -- Added a new headers interface to HttpResponse. | Tom Carrick | 2020-09-14 | 2 | -19/+28 |
| | |||||
* | Fixed #31982 -- Made HttpResponse.set_cookie() cast max_age argument to an ↵ | Hasan Ramezani | 2020-09-05 | 1 | -0/+5 |
| | | | | integer. | ||||
* | Fixed #31790 -- Fixed setting SameSite and Secure cookies flags in ↵ | Mariusz Felisiak | 2020-07-16 | 1 | -0/+12 |
| | | | | | | | | 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. | ||||
* | Changed `'%s' % value` pattern to `str(value)`. | Nick Pope | 2020-05-04 | 1 | -1/+1 |
| | |||||
* | Capitalized Unicode in docs, strings, and comments. | Jon Dufresne | 2020-04-20 | 1 | -1/+1 |
| | |||||
* | Reverted "Fixed #30565 -- Closed HttpResponse when wsgi.file_wrapper closes ↵ | Florian Apolloner | 2020-02-11 | 1 | -49/+0 |
| | | | | | | file-like object." This reverts commit cce47ff65a4dd3786c049ec14ee889e128ca7de9. | ||||
* | Fixed #30862 -- Allowed setting SameSite cookies flags to 'none'. | Osaetin Daniel | 2019-12-12 | 1 | -1/+4 |
| | | | | Thanks Florian Apolloner and Carlton Gibson for reviews. | ||||
* | Used more specific unittest assertions in tests. | Nick Pope | 2019-10-29 | 1 | -1/+1 |
| | | | | | | | | | | | | * 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. | ||||
* | Fixed #30565 -- Closed HttpResponse when wsgi.file_wrapper closes file-like ↵ | Chris Jerdonek | 2019-06-20 | 1 | -0/+49 |
| | | | | object. | ||||
* | Fixed #30196 -- Made FileResponse set Content-Disposition inline if filename ↵ | ShingenPizza | 2019-05-17 | 1 | -0/+9 |
| | | | | is available. | ||||
* | Made a requests test that will fail in 2028 fail 10 years later. | Bernhard M. Wiedemann | 2019-02-14 | 1 | -2/+2 |
| | | | 2038 is chosen for compatibility with 32-bit systems. | ||||
* | Fixed #30137 -- Replaced OSError aliases with the canonical OSError. | Jon Dufresne | 2019-01-28 | 1 | -3/+3 |
| | | | | Used more specific errors (e.g. FileExistsError) as appropriate. | ||||
* | Refs #16470 -- Fixed typo in a FileResponse test. | James Aylett | 2018-09-01 | 1 | -1/+1 |
| | |||||
* | Fixed #16470 -- Allowed FileResponse to auto-set some Content headers. | Claude Paroz | 2018-05-15 | 1 | -0/+73 |
| | | | 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 | 1 | -0/+11 |
| | | | Thanks Alex Gaynor for contributing to the patch. | ||||
* | Fixed #28989 -- Fixed HttpResponse.delete_cookie() for cookies that use ↵ | Alvin Lindstam | 2018-01-08 | 1 | -0/+13 |
| | | | | __Secure/Host prefixes. | ||||
* | Moved HttpResponse.set_cookie() tests to an appropriate location. | Tim Graham | 2018-01-08 | 1 | -0/+93 |
| | |||||
* | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | 2017-01-18 | 1 | -4/+0 |
| | |||||
* | Fixed #27640 -- Fixed HttpResponse's __repr__() without a 'Content-Type' ↵ | roboslone | 2016-12-27 | 1 | -0/+5 |
| | | | | header. | ||||
* | Fixed #27153 -- Added validation for HttpResponse status. | Ryan Allen | 2016-08-30 | 1 | -2/+22 |
| | |||||
* | Refs #26022 -- Used context manager version of assertRaises in tests. | Hasan | 2016-01-29 | 1 | -1/+2 |
| | |||||
* | Fixed #25725 -- Made HttpReponse immediately close objects. | Johannes Hoppe | 2015-12-14 | 1 | -0/+11 |
| | |||||
* | Fixed #25576 -- Added IOBase methods required by TextIOWrapper to HttpResponse. | Jon Dufresne | 2015-10-21 | 1 | -0/+9 |
| | |||||
* | Refs #24121 -- Added meaningful repr() to HttpResponse and subclasses. | Keryn Knight | 2015-07-15 | 1 | -0/+5 |
| | |||||
* | Fixed #24139 -- Changed HttpResponse.reason_phrase to evaluate based on ↵ | Jon Dufresne | 2015-03-12 | 1 | -0/+6 |
| | | | | status_code. | ||||
* | Fixed #24137 -- Switched to HTTP reason phrases from Python stdlib. | Jon Dufresne | 2015-01-28 | 1 | -3/+3 |
| | |||||
* | Fixed #23977 -- Added setdefault() method to HttpResponse | Sergey Parkhomenko | 2014-12-11 | 1 | -0/+14 |
| | |||||
* | Fixed #18523 -- Added stream-like API to HttpResponse. | Michael Kelly | 2014-11-03 | 1 | -1/+24 |
| | | | | | | | 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. | ||||
* | Fixed #10190 -- Made HttpResponse charset customizable. | Unai Zalakain | 2014-08-19 | 1 | -2/+52 |
| | | | | | Thanks to Simon Charette, Aymeric Augustin, and Tim Graham for reviews and contributions. | ||||
* | Removed superfluous models.py files. | Aymeric Augustin | 2013-12-17 | 1 | -0/+0 |
| | | | | | | | 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. | ||||
* | Fixing E302 Errors | Jason Myers | 2013-11-02 | 1 | -0/+1 |
| | | | | Signed-off-by: Jason Myers <jason@jasonamyers.com> | ||||
* | Fixed #12747 -- Made reason phrases customizable. | Aymeric Augustin | 2013-05-19 | 3 | -0/+15 |