Merge "Add -X to DELETE and PUT in debug mode"
This commit is contained in:
commit
671afc344c
@ -120,7 +120,7 @@ class HTTPClient(httplib2.Http):
|
||||
|
||||
string_parts = ['curl -i']
|
||||
for element in args:
|
||||
if element in ('GET', 'POST'):
|
||||
if element in ('GET', 'POST', 'DELETE', 'PUT'):
|
||||
string_parts.append(' -X %s' % element)
|
||||
else:
|
||||
string_parts.append(' %s' % element)
|
||||
|
Loading…
x
Reference in New Issue
Block a user