annoviko / robotframework-httpctrl

HttpCtrl is a library for Robot Framework that provides API of HTTP(S) client and server
https://annoviko.github.io/robotframework-httpctrl/
BSD 3-Clause "New" or "Revised" License
13 stars 2 forks source link

DELETE request with body is not handled in httpHandler #24

Closed touristt closed 2 years ago

touristt commented 3 years ago

Describe the bug I had initialized an HTTP Server Using the Start Server keyword and sent a DELETE request containing body to it, but seems like the server is not looking for request body from a DELETE request https://github.com/annoviko/robotframework-httpctrl/blob/e8457ea141ff3df7cc969813ee7b2116ea76af2c/src/HttpCtrl/http_handler.py#L68-L69

To Reproduce Start an HTTP Server using START SERVER and Wait For Request for n seconds Send a DELETE HTTP request containing the body to the server

Expected behavior the request body from a DELETE request should be added to the request object

Screenshots DELETE Request: deleteReq

POST Request postReq

Desktop (please complete the following information):

annoviko commented 2 years ago

Hello @shyash ,

The issue has been fixed. Now it is possible to use body with all methods. Please, use version 0,1,10:

pip3 install robotframework-httpctrl

Let me know if encounter with any problems.

touristt commented 2 years ago

I have tested with the 0.1.10 release, Thank you @annoviko for the quick fix