Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/http/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25099 -- Cleaned up HttpRequest representations ↵Vlastimil Zíma2015-07-141-2/+1
| | | | in error reporting.
* Sorted imports in __init__.py files.Tim Graham2015-06-271-7/+9
|
* Fixed #23960 -- Removed http.fix_location_headerClaude Paroz2015-03-181-3/+3
| | | | Thanks Carl Meyer for the report and Tim Graham for the review.
* Fixed #24072 -- Added FileResponse for streaming binary ↵Collin Anderson2015-01-051-3/+5
| | | | files.
* Dropped fix_IE_for_vary/attach.Aymeric Augustin2014-05-141-3/+2
| | | | This is a security fix. Disclosure following shortly.
* Fixed #17942 -- Added a JsonResponse class to more ↵Lukasz Balcerzak2014-02-151-2/+2
| | | | | | | easily create JSON encoded responses. Thanks leahculver for the suggestion and Erik Romijn, Simon Charette, and Marc Tamlyn for the reviews.
* Fixed #21302 -- Fixed unused imports and import *.Tim Graham2013-11-021-4/+15
|
* Fixed #16822 -- Added RawPostDataExceptionTim Graham2013-10-081-2/+2
| | | | Thanks jaylett for the patch.
* Removed compatibility code for streaming responses.Aymeric Augustin2013-06-291-4/+4
| | | | | | This code provided a deprecation path for old-style streaming responses. Refs #6527, #7581.
* Cleaned up the the http module. Moved all of the code ↵Alex Gaynor2012-10-211-933/+10
| | | | from __init__.py to request.py, response.py and utils.py
* Fixed #7581 -- Added streaming responses.Aymeric Augustin2012-10-201-32/+146
| | | | Thanks mrmachine and everyone else involved on this long-standing ticket.
* Fixed #5611 -- Restricted accepted content types in ↵Claude Paroz2012-10-201-3/+5
| | | | | | parsing POST data Thanks paulegan for the report and Preston Holmes for the review.
* Fixed a security issue related to password resetsPreston Holmes2012-10-171-0/+5
| | | Full disclosure and new release are forthcoming
* Fixed #18916 -- Allowed non-ASCII headers.Aymeric Augustin2012-09-081-21/+35
| | | | Thanks Malcolm Tredinnick for the review.
* Replaced some smart_xxx by force_xxx equivalentClaude Paroz2012-08-301-4/+4
| | | | | smart_str/smart_text should only be used when a potential lazy string should be preserved in the result of the function call.
* Replaced many smart_bytes by force_bytesClaude Paroz2012-08-291-5/+5
| | | | | | In all those occurrences, we didn't care about preserving the lazy status of the strings, but we really wanted to obtain a real bytestring.
* Fixed #18678 -- HttpResponse init arguments allowed for ↵Claude Paroz2012-08-231-4/+4
| | | | | | subclasses Thanks hp1337@gmail.com for the report.
* Fixed #11340 -- Prevented HttpResponseNotModified to ↵Claude Paroz2012-08-221-0/+10
| | | | | | | | have content/content-type The HTTP 1.1 spec tells that the 304 response MUST NOT contain a message body. Thanks aparajita for the report.
* Used the decorator syntax for properties in django.httpClaude Paroz2012-08-221-22/+22
|
* [py3] Fixed another regression from 2892cb0ec4.Aymeric Augustin2012-08-191-7/+8
|
* [py3] Fixed regression introduced in 536b030363.Aymeric Augustin2012-08-191-10/+17
| | | | | | | | | | | Refs #18764. Reverted 536b030363 and switched to a more explicit way of avoiding calling bytes(<int>). This definitely deserves a refactoring. Specifically, _get_content should just return b''.join(self). Unfortunately that's impossible with the current tests.
* [py3] Supported integers in HttpResponseAymeric Augustin2012-08-191-9/+10
| | | | Fixed #18764.
* [py3] Fixed HTTP header serializationClaude Paroz2012-08-151-1/+1
|
* [py3] Fixed HttpResponse when initialized with bytesClaude Paroz2012-08-141-1/+1
|
* [py3] Ported django.http according to PEP 3333.Aymeric Augustin2012-08-141-43/+63
| | | | Perfomed some style cleanup while I was in the area.
* [py3] Fixed contrib.formtools testsClaude Paroz2012-08-131-1/+1
|
* [py3] Fixed iterlists usage in QueryDictClaude Paroz2012-08-131-2/+2
|
* [py3] Used smart_str to prevent regressions in http handlingClaude Paroz2012-08-111-4/+4
|
* [py3] Fixed Python 3 compatibility of http handlingClaude Paroz2012-08-111-4/+4
| | | | | | * Using str() when Python 2 expects bytes and Python 3 Unicode * Fixed reraise-ing syntax * Fixed slicing of byte strings
* [py3] Renamed `next` to `__next__` in iterators.Aymeric Augustin2012-08-091-1/+3
| | | | See PEP 3114. `next` is retained as an alias for Python 2.
* [py3] Fixed 'iterable but non string' detectionClaude Paroz2012-08-081-1/+1
| | | | | | In Python 3, the str type has an __iter__ attribute. Therefore, the presence of an __iter__ attribute is not sufficient to distinguish 'standard' iterables (list, tuple) from strings.
* [py3] Made a small fix in django.http.Aymeric Augustin2012-08-071-1/+6
| | | | This is necessary for the 'utils' tests to pass.
* [py3] Ported django.utils.encoding.Aymeric Augustin2012-08-071-12/+12
| | | | | | | | | | | * Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str.
* Replaced some byte strings by str() callsClaude Paroz2012-08-031-1/+1
| | | | | This is a useful trick when Python 2 awaits byte strings and Python 3 Unicode (regular) strings.
* Fixed a security issue in http redirects. Disclosure and ↵Florian Apolloner2012-07-301-11/+13
| | | | new release forthcoming.
* [py3] Switched to Python 3-compatible imports.Aymeric Augustin2012-07-221-11/+11
| | | | | xrange/range will be dealt with in a separate commit due to the huge number of changes.
* [py3] Updated urllib/urllib2/urlparse imports.Aymeric Augustin2012-07-221-2/+5
| | | | | Lots of functions were moved. Use explicit imports in all cases to keey it easy to identify where the functions come from.
* [py3] Replaced unicode/str by six.text_type/bytes.Aymeric Augustin2012-07-221-8/+8
|
* [py3] Used six.reraise wherever necessary.Aymeric Augustin2012-07-221-1/+2
|
* Fixed #18561 -- Made HttpResponse.tell() support ↵Claude Paroz2012-07-171-1/+1
| | | | non-ascii chars
* Cleaned up the QueryDict implementation.Alex Gaynor2012-07-141-28/+17
| | | | | | - Use super(). - Don't poke at internals. - Don't override methods for no reason.
* Fixed #16519 -- Deprecated mimetype kwarg of ↵Claude Paroz2012-06-301-3/+5
| | | | | | | | | HttpResponse __init__ This keyword was already deprecated in the code (supported for backwards compatibility only), but never formally deprecated. Thanks Paul McMillan for the report and yasar11732 for the initial patch.
* Fixed #18269 -- Applied unicode_literals for Python 3 ↵Claude Paroz2012-06-071-3/+5
| | | | | | | compatibility. Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
* Marked bytestrings with b prefix. Refs #18269Claude Paroz2012-05-191-3/+3
| | | | | This is a preparation for unicode literals general usage in Django (Python 3 compatibility).
* Replaced foo.next() by next(foo).Claude Paroz2012-05-101-1/+1
| | | | | This new syntax for next() has been introduced in Python 2.6 and is compatible with Python 3.
* Replaced cStringIO.StringIO by io.BytesIO.Claude Paroz2012-05-051-7/+4
| | | | | Also replaced StringIO.StringIO by BytesIO in some other appropriate places. StringIO is not available in Python 3.
* Fixed #18042 -- Advanced deprecation warnings.Aymeric Augustin2012-05-031-1/+1
| | | | Thanks Ramiro for the patch.
* Fixed #18013 -- Use the new 'as' syntax for exceptions.Claude Paroz2012-04-291-2/+2
| | | | | Thanks Clueless for the initial patch. Note that unittest has been purposely left out (external package only used by Python 2.6).
* Removed deprecated CompatCookie.Aymeric Augustin2012-03-311-5/+0
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@17843 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #18029 -- Removed mod_python as of deprecation ↵Claude Paroz2012-03-311-7/+2
| | | | | | process. Thanks Aymeric Augustin for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17835 bcc190cf-cafb-0310-a4f2-bffc1f526a37