Skip to content

Commit 4fc2795

Browse files
stop createObject and other special methods from being stripped from URL with REST requests
1 parent fc8d42c commit 4fc2795

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

SoftLayer/transports.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,7 @@ def __call__(self, request):
272272
if request.identifier is not None:
273273
url_parts.append(str(request.identifier))
274274

275-
# Special methods (createObject, editObject, etc) use the HTTP verb
276-
# to determine the action on the resource
277-
if request.method is not None and not is_special_method:
275+
if request.method is not None:
278276
url_parts.append(request.method)
279277

280278
url = '%s.%s' % ('/'.join(url_parts), 'json')

0 commit comments

Comments
 (0)