Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/http/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed #17965 -- Definitely dropped support for Python ↵Claude Paroz2012-03-311-30/+4
| | | | | | 2.5. Thanks jonash for the initial patch and Aymeric Augustin for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17834 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #17931 -- Accepted aware datetimes to set cookies ↵Aymeric Augustin2012-03-181-3/+9
| | | | | | expiry dates. Thanks jaddison for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17766 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #17923 -- Added missing import in the MySQL and ↵Aymeric Augustin2012-03-171-1/+0
| | | | | | Oracle backends. Thanks aldaran for the report. Also removed two duplicate imports. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17758 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #17277 - Wrap IOErrors raised due to client ↵Carl Meyer2012-02-101-1/+7
| | | | | | disconnect in a specific IOError subclass so they can be distinguished from more serious errors. Thanks David Lowe. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17493 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Negligible spacing fixes to comments in ↵Adrian Holovaty2011-12-171-7/+7
| | | | | | django/http/__init__.py git-svn-id: http://code.djangoproject.com/svn/django/trunk@17221 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed comma splice in DeprecationWarning for CompatCookieAdrian Holovaty2011-12-171-2/+1
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@17220 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #17323 -- Renamed HttpRequest.raw_post_data to ↵Adrian Holovaty2011-12-171-12/+19
| | | | | | request.body. Thanks for the patch, dstufft git-svn-id: http://code.djangoproject.com/svn/django/trunk@17210 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14597 -- Added a SECURE_PROXY_SSL_HEADER setting ↵Adrian Holovaty2011-12-161-1/+16
| | | | | | for cases when you're behind a proxy that 'swallows' the fact that a request is HTTPS git-svn-id: http://code.djangoproject.com/svn/django/trunk@17209 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15863 - SimpleCookies are not correctly ↵Luke Plant2011-12-111-0/+11
| | | | | | | | serialized with the file or database cache backends Thanks to rakuco for the report and for the tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17200 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Remove all relative imports. We have always been at war ↵Alex Gaynor2011-10-181-5/+7
| | | | | | with relative imports. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17009 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Slight cleanup to r16829, thanks Alex Gaynor for the note.Paul McMillan2011-09-151-1/+1
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@16830 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16494 by normalizing HttpResponse behavior with ↵Paul McMillan2011-09-151-13/+12
| | | | | | non-string input. HttpResponse now always converts content to string on output, regardless of input type. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16829 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Added protection against spoofing of X_FORWARDED_HOST ↵Russell Keith-Magee2011-09-101-1/+2
| | | | | | headers. A security announcement will be made shortly. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16758 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Replaced `has_key()` calls with `in` to ease Python 3 ↵Jannis Leidel2011-09-091-2/+2
| | | | | | port. Thanks, Martin von Löwis. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16740 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16584 -- Fixed a bunch of typos in code comments. ↵Jannis Leidel2011-08-121-1/+1
| | | | | | Thanks, Bernhard Essl. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16598 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed bug with our SimpleCookie regarding load/custom ↵Luke Plant2011-07-081-14/+7
| | | | | | Morsel, and simplified implementation git-svn-id: http://code.djangoproject.com/svn/django/trunk@16526 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed our SimpleCookie overriding and use to be ↵Luke Plant2011-06-291-12/+12
| | | | | | | | | | compatible with a (potential) stdlib SimpleCookie that fixes http://bugs.python.org/issue2193 The previous code tested the stdlib in a way that would always fail. It then used an overridden SimpleCookie.load method that wouldn't work for the stdlib. And it did some completely unnecessary monkey patching. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16485 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15785 -- Stopped HttpRequest.read() from reading ↵Jannis Leidel2011-06-281-11/+1
| | | | | | beyond the end of a wsgi.input stream and removed some redundant code in the multipartparser. Thanks, tomchristie, grahamd and isagalaev. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16479 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15852 -- Modified cookie parsing so it can handle ↵Ramiro Morales2011-06-251-3/+3
| | | | | | duplicate invalid cookie names. Thanks goes to Fredrik Stålnacke for the report and to vung for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16452 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14020 -- Made the `HttpResponse` class slightly ↵Jannis Leidel2011-06-161-1/+1
| | | | | | more behave like a dictionary, allowing the alternative argument to be unset. Serious thanks to schmichael and moopet. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16417 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16178 - Cleanup request classes' `__repr__()`Luke Plant2011-06-101-3/+49
| | | | | | Thanks to julien for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16350 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16155 -- Removed Python 2.4 compatibility ↵Ramiro Morales2011-06-091-3/+2
| | | | | | constructs from code and mentions from docs. Thanks Aymeric Augustin for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16349 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #12417 -- Added signing functionality, including ↵Jannis Leidel2011-05-211-0/+30
| | | | | | signing cookies. Many thanks to Simon, Stephan, Paul and everyone else involved. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16253 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Advanced deprecation on CompatCookie.Russell Keith-Magee2011-04-021-1/+1
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@15984 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15679 - regression in HttpRequest.POST and ↵Luke Plant2011-03-281-3/+7
| | | | | | | | | | | | | raw_post_data access. Thanks to vkryachko for the report. This also fixes a slight inconsistency with raw_post_data after parsing of a multipart request, and adds a test for that. (Previously accessing raw_post_data would have returned the empty string rather than raising an Exception). git-svn-id: http://code.djangoproject.com/svn/django/trunk@15938 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Removed a bunch more Python 2.4 workarounds now that we ↵Adrian Holovaty2011-03-281-1/+1
| | | | | | don't support that version. Refs #15702 -- thanks to jonash for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15642 -- Removed redundant imports in ↵Adrian Holovaty2011-03-261-6/+0
| | | | | | http/__init__.py. Thanks, jammon git-svn-id: http://code.djangoproject.com/svn/django/trunk@15916 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Removed some dead code, and old/bad constructs from the ↵Alex Gaynor2011-03-091-9/+3
| | | | | | HttpResponse classes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15781 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #4992 -- Respect the GET request query string when ↵Jannis Leidel2011-03-021-1/+3
| | | | | | creating cache keys. Thanks PeterKz and guettli for the initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15705 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #13007 -- Made cookie parsing resilent to the ↵Ramiro Morales2011-02-131-2/+27
| | | | | | presence of cookies with invalid characters in their names. Thanks Warlax for the report, Ubercore for his work on a fix and Jannis and Luke for review and guidance. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15523 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Rationalised CompatCookie/SimpleCookie into single ↵Luke Plant2011-01-241-55/+65
| | | | | | | | | | SimpleCookie class with all fixes. Since upstream Python has fixed the encoding bug (see http://bugs.python.org/issue9824), we don't want a separate class for this bug fix, or several layers for the different fixes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15298 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14809 -- broken login related tests after r14733.Chris Beaven2010-12-011-3/+22
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@14764 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #3304 -- Added support for HTTPOnly cookies. ↵Russell Keith-Magee2010-11-261-4/+38
| | | | | | Thanks to arvin for the suggestion, and rodolfo for the draft patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14707 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14594 -- Corrected r14435, which got the logic ↵Russell Keith-Magee2010-11-021-2/+2
| | | | | | completely bass ackwards. Thanks to Mark Sundstrom for keeping me honest :-) git-svn-id: http://code.djangoproject.com/svn/django/trunk@14436 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14594 -- Corrected a problem introduced by r14394 ↵Russell Keith-Magee2010-11-021-1/+11
| | | | | | whereby reading POST data when running a WSGI server under CherryPy would hang. Thanks to Mark Sundstrom for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14435 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #9886 -- Added a file-like interface to ↵Russell Keith-Magee2010-10-291-3/+74
| | | | | | HttpRequest. Thanks to Ivan Sagalaev for the suggestion and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14394 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Consistent imports for parse_qsl function, avoiding the ↵Luke Plant2010-10-201-1/+7
| | | | | | `PendingDeprecationWarning` under Python 2.6 and later git-svn-id: http://code.djangoproject.com/svn/django/trunk@14297 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Allow setting HttpResponse cookie expiry times with ↵Malcolm Tredinnick2010-09-121-2/+26
| | | | | | | | datetime objects. Patch from SmileyChris. Fixed #7770. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Improved unicode-type, ASCII-convertible header handling inMalcolm Tredinnick2010-09-111-6/+6
| | | | | | | | HttpResponse. Fixed #8765. Thanks to SmileyChris and semenov for working on this one. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13740 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #13572: copies of QueryDicts now have their ↵Jacob Kaplan-Moss2010-05-281-2/+2
| | | | | | encoding set correctly. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13314 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #11522: Restored ability of http redirect ↵Karen Tracey2010-03-021-2/+2
| | | | | | responses to correctly handle redirect locations with non-ASCII chars. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12659 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #12470 - django.contrib.messages CookieStorage ↵Luke Plant2010-01-241-2/+30
| | | | | | | | | | | | | | | failing silently in safari when comma is used in message This issue was fixed by changing the underlying cookie storage mechanism. This will fix other bugs with cookies for Internet Explorer and Safari, but could also cause backwards incompatibilities with existing javascript that may parse cookie values that contain commas or semi-colons, and, very rarely, with existing cookie values. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12282 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #11753 - Q objects with callables no longer ↵Jacob Kaplan-Moss2009-12-171-1/+1
| | | | | | explode on Python 2.4. Thanks, Jeremy Dunck. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11901 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed edge case that breaks the test suite on versions ↵Brian Rosner2009-12-121-8/+10
| | | | | | | | | | | | | of Python > 2.6.4 Before http://svn.python.org/view?view=rev&revision=74647 it was possible to pass a SimpleCookie to load, but this no longer works due to a different bug in Python the said revision fixed. My guess is a SimpleCookie was never intended to be passed through load which is perfectly reasonable. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11820 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed a silly function flow bug in [10711].Jacob Kaplan-Moss2009-05-081-4/+5
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@10712 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #10188: prevent newlines in HTTP headers. Thanks, ↵Jacob Kaplan-Moss2009-05-081-0/+5
| | | | | | bthomas. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10711 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #10267 -- Correctly handle IRIs in ↵Malcolm Tredinnick2009-04-121-3/+3
| | | | | | HttpResponse.build_absolute_uri(). git-svn-id: http://code.djangoproject.com/svn/django/trunk@10539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #10184: QueryDicts with multiple values can now be ↵Jacob Kaplan-Moss2009-03-311-1/+1
| | | | | | safely pickled. Thanks, Alex Gaynor. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10240 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #8278: fixed `QueryDict.update(QueryDict)`. ↵Jacob Kaplan-Moss2008-08-291-2/+7
| | | | | | Thanks, julien. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8705 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed an inconsistancy in redirects with ↵Jacob Kaplan-Moss2008-08-281-2/+2
| | | | | | `META['SERVER_PORT']` being either a string or an int. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8666 bcc190cf-cafb-0310-a4f2-bffc1f526a37