From 38931235fcc24361875a1f1f980e8a1a1981d99f Mon Sep 17 00:00:00 2001 From: asaf Date: Wed, 23 Aug 2017 16:16:36 +0300 Subject: [PATCH] added the option to add request body to delete request --- 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):