From 24b2bc635e23e4235f51095fbe099beec27a65c8 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Tue, 13 Jan 2015 11:29:07 -0800 Subject: Fixed #24137 -- Switched to HTTP reason phrases from Python stdlib. --- docs/ref/request-response.txt | 14 ++++++++++++++ docs/releases/1.9.txt | 7 +++++++ 2 files changed, 21 insertions(+) (limited to 'docs') diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index 41e6d3dcdc..ffe2bf4cd3 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -629,6 +629,13 @@ Attributes The HTTP reason phrase for the response. + .. versionchanged:: 1.9 + + ``reason_phrase`` no longer defaults to all capital letters. It now + uses the `HTTP standard's`_ default reason phrases. + + .. _`HTTP standard's`: https://www.ietf.org/rfc/rfc2616.txt + .. attribute:: HttpResponse.streaming This is always ``False``. @@ -980,6 +987,13 @@ Attributes The HTTP reason phrase for the response. + .. versionchanged:: 1.9 + + ``reason_phrase`` no longer defaults to all capital letters. It now + uses the `HTTP standard's`_ default reason phrases. + + .. _`HTTP standard's`: https://www.ietf.org/rfc/rfc2616.txt + .. attribute:: StreamingHttpResponse.streaming This is always ``True``. diff --git a/docs/releases/1.9.txt b/docs/releases/1.9.txt index e15c1d9b60..e51d3b0afe 100644 --- a/docs/releases/1.9.txt +++ b/docs/releases/1.9.txt @@ -171,6 +171,13 @@ Miscellaneous * CSS and images in ``contrib.admin`` to support Internet Explorer 6 & 7 have been removed as these browsers have reached end-of-life. +* ``django.http.responses.REASON_PHRASES`` and + ``django.core.handlers.wsgi.STATUS_CODE_TEXT`` have been removed. Use + Python's stdlib instead: :data:`http.client.responses` for Python 3 and + `httplib.responses`_ for Python 2. + + .. _`httplib.responses`: https://docs.python.org/2/library/httplib.html#httplib.responses + .. _deprecated-features-1.9: Features deprecated in 1.9 -- cgit v1.3