ForbesLindesay / sync-request

Make synchronous web requests with cross platform support.
MIT License
326 stars 49 forks source link

DELETE request didn't send the body to server #106

Open VolkovSec opened 6 years ago

VolkovSec commented 6 years ago

Request like: `var request = require('sync-request');

var header = { "Content-Type": "application/json", "Cache-Control": "no-cache" }; deleteRequest = [ { "Name": "Title", "type": "PRODUCT", "id" : "123" } ]; var response = request("DELETE", url + "/apiName", {"headers": header, "json": deleteRequest});`

According to the logs in microservice a request is sent with an empty body {}. Other types of PUT, POST, GET requests work fine. Other DELETE requests that don't require body, work well.

merugaJS commented 4 years ago

any update on this??

merugaJS commented 4 years ago

Just checking on this Any Update

jfvilasat commented 3 years ago

i've got same issue. Not solved?

sync-request@6.1.0 | MIT | deps: 3 | versions: 17

Thanks in advance.

DaveUJ commented 3 years ago

Has there been an update on this?