Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #9369 -- Added QUERY_STRING info for PUT and DELETE requests in…

… the test client. Thanks to david for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9397 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a53ccc82978362aab07e4ccafb63a15fd6070e60 1 parent ecc1ed4
Russell Keith-Magee authored November 12, 2008

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  django/test/client.py
2  django/test/client.py
@@ -332,6 +332,7 @@ def put(self, path, data={}, content_type=MULTIPART_CONTENT, **extra):
332 332
             'CONTENT_LENGTH': len(post_data),
333 333
             'CONTENT_TYPE':   content_type,
334 334
             'PATH_INFO':      urllib.unquote(path),
  335
+            'QUERY_STRING':   urlencode(data, doseq=True),
335 336
             'REQUEST_METHOD': 'PUT',
336 337
             'wsgi.input':     FakePayload(post_data),
337 338
         }
@@ -345,6 +346,7 @@ def delete(self, path, data={}, **extra):
345 346
         """
346 347
         r = {
347 348
             'PATH_INFO':       urllib.unquote(path),
  349
+            'QUERY_STRING':    urlencode(data, doseq=True),
348 350
             'REQUEST_METHOD': 'DELETE',
349 351
             'wsgi.input':      FakePayload('')
350 352
         }

0 notes on commit a53ccc8

Please sign in to comment.
Something went wrong with that request. Please try again.