From e93edf0fa84e932fb5109d77c98a93afd045c818 Mon Sep 17 00:00:00 2001 From: Brant Date: Thu, 13 Oct 2016 18:04:30 -0700 Subject: [PATCH] Update __init__.py to support request body for HTTP Delete method Sometimes we need send request body (like json file) by using HTTP DELETE. --- src/HttpLibrary/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HttpLibrary/__init__.py b/src/HttpLibrary/__init__.py index ae11328..7730956 100644 --- a/src/HttpLibrary/__init__.py +++ b/src/HttpLibrary/__init__.py @@ -278,7 +278,7 @@ def DELETE(self, url): logger.debug("Performing DELETE request on %s://%s%s" % ( self.context._scheme, self.app.host, url)) self.context.post_process_request( - self.app.delete(path, {}, self.context.request_headers) + self.app.delete(path, self.context.request_body or {}, self.context.request_headers) ) def follow_response(self):