Skip to content

Commit 1037556

Browse files
author
Ilya Tumash
committed
fix request data bug with PUT and DELETE
1 parent a3a321c commit 1037556

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

admitad/transport.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ def prepare_request_data(data=None, headers=None, method='GET',
7070

7171
prepared_data = prepare_data(data)
7272

73-
if method == 'POST':
73+
if method in ['POST', 'PUT']:
7474
kwargs['data'] = prepared_data
75-
if method == 'GET':
75+
if method in ['GET', 'DELETE']:
7676
kwargs['params'] = prepared_data
7777

7878
return kwargs

0 commit comments

Comments
 (0)