edgurgel / httparrot

HTTP Request & Response Server. An incomplete clone of http://httpbin.org
https://httparrot.onrender.com/
MIT License
86 stars 27 forks source link

Allow to send accept header with delete request #31

Closed idabmat closed 5 years ago

idabmat commented 5 years ago

Thank your for this library :) I noticed something. Sending a DELETE request to localhost:8080/delete without any particular headers works fine. Sending an Accept:application/json header with the same request fails. Doing the above works with httpbin. I copied this function from the get_handler.ex module, which did not exhibit this bug. Now it seems to be fine.

edgurgel commented 5 years ago

Thank you! I will release a new version soon! 🎉