Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/httpwrappers
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25254 -- Added JsonResponse json_dumps_params ↵Sambhav Satija2015-08-121-0/+4
| | | | parameter.
* Refs #24121 -- Added meaningful repr() to HttpResponse ↵Keryn Knight2015-07-151-0/+10
| | | | and subclasses.
* Fixed #25019 -- Added UUID support in DjangoJSONEncoderLukas Hetzenecker2015-06-241-0/+6
|
* Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette2015-05-201-5/+5
|
* Removed redundant list() calls.Tim Graham2015-05-161-4/+4
|
* Fixed #20889 -- Prevented BadHeaderError when Python ↵Claude Paroz2015-02-191-0/+3
| | | | | | | | | inserts newline Workaround for http://bugs.python.org/issue20747. In some corner cases, Python 2 inserts a newline in a header value despite `maxlinelen` passed in Header constructor. Thanks Tim Graham for the review.
* Fixed E265 comment styleCollin Anderson2015-02-061-1/+1
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-8/+9
|
* Fixed #24240 -- Allowed GZipping a Unicode ↵Matthew Somerville2015-02-031-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | StreamingHttpResponse make_bytes() assumed that if the Content-Encoding header is set, then everything had already been dealt with bytes-wise, but in a streaming situation this was not necessarily the case. make_bytes() is only called when necessary when working with a StreamingHttpResponse iterable, but by that point the middleware has added the Content-Encoding header and thus make_bytes() tried to call bytes(value) (and dies). If it had been a normal HttpResponse, make_bytes() would have been called when the content was set, well before the middleware set the Content-Encoding header. This commit removes the special casing when Content-Encoding is set, allowing unicode strings to be encoded during the iteration before they are e.g. gzipped. This behaviour was added a long time ago for #4969 and it doesn't appear to be necessary any more, as everything is correctly made into bytes at the appropriate places. Two new tests, to show that supplying non-ASCII characters to a StreamingHttpResponse works fine normally, and when passed through the GZip middleware (the latter dies without the change to make_bytes()). Removes the test with a nonsense Content-Encoding and Unicode input - if this were to happen, it can still be encoded as bytes fine.
* Fixed #23730 -- Moved support for SimpleCookie ↵Tim Graham2014-11-121-2/+14
| | | | | | | | HIGHEST_PROTOCOL pickling to http.cookie. This fix is necessary for Python 3.5 compatibility (refs #23763). Thanks Berker Peksag for review.
* Fixed #18523 -- Added stream-like API to HttpResponse.Michael Kelly2014-11-031-0/+12
| | | | | | | 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 #23620 -- Used more specific assertions in the ↵Berker Peksag2014-11-031-8/+8
| | | | Django test suite.
* Fixed #22996 -- Prevented crash with unencoded query stringClaude Paroz2014-08-191-3/+3
| | | | | Thanks Jorge Carleitao for the report and Aymeric Augustin, Tim Graham for the reviews.
* Fixed #22897 -- Made QueryDict query_string argument ↵Duncan Parkes2014-06-251-10/+13
| | | | | | optional. Now QueryDict() is equivalent to QueryDict('') or QueryDict(None).
* Removed useless warning silencing.Aymeric Augustin2014-03-211-5/+1
| | | | If memory serves, the corresponding warning disappeared in Django 1.7.
* 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 #17942 -- Added a JsonResponse class to more ↵Lukasz Balcerzak2014-02-151-1/+32
| | | | | | | easily create JSON encoded responses. Thanks leahculver for the suggestion and Erik Romijn, Simon Charette, and Marc Tamlyn for the reviews.
* Removed superfluous models.py files.Aymeric Augustin2013-12-171-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.
* Simplified iteration in HTTP response objects.Aymeric Augustin2013-11-231-3/+3
| | | | | | | Fixed #20187 -- Allowed repeated iteration of HttpResponse. All this became possible when support for old-style streaming responses was finally removed.
* PEP8 cleanupJason Myers2013-11-031-0/+5
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed all E261 warningscoagulant2013-11-031-7/+7
|
* Fixed #21282 -- Made HttpResponse.serialize_headers ↵Claude Paroz2013-10-171-0/+3
| | | | | | | accept latin-1 Thanks Raphaël Barrois for the report and the initial patch and Aymeric Augustin for the review.
* Fixed #18403 -- Initialized bad_cookies in SimpleCookiee0ne2013-09-101-0/+9
| | | | Thanks Stefano Crosta for the report.
* Fixed syntax error on Python 3.2; refs #20889.Tim Graham2013-09-091-1/+1
|
* Fixed #20889 -- Prevented email.Header from inserting ↵Daniel Boeve2013-09-091-0/+7
| | | | | | | | | newlines Passed large maxlinelen to email.Header to prevent newlines from being inserted into value returned by _convert_to_charset Thanks mjl at laubach.at for the report.
* Replaced "not PY3" by "PY2", new in six 1.4.0.Aymeric Augustin2013-09-021-7/+7
|
* Fixed #20961 -- Fixed HttpResponse default empty contentClaude Paroz2013-08-241-0/+7
| | | | Thanks epandurski at gmail.com for the report.
* Fixed #10491 -- Allowed passing lazy objects to ↵Baptiste Mispelon2013-07-301-1/+13
| | | | | | HttpResponseRedirect. Thanks liangent for the report.
* Stopped using django.utils.unittest in the test suite.Aymeric Augustin2013-07-011-1/+1
| | | | Refs #20680.
* Removed compatibility code for streaming responses.Aymeric Augustin2013-06-291-19/+6
| | | | | | This code provided a deprecation path for old-style streaming responses. Refs #6527, #7581.
* Implemented persistent database connections.Aymeric Augustin2013-02-281-3/+3
| | | | Thanks Anssi Kääriäinen and Karen Tracey for their inputs.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-264-0/+608