sync-request
sync-request copied to clipboard
DELETE request didn't send the body to server
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.
any update on this??
Just checking on this Any Update
i've got same issue. Not solved?
[email protected] | MIT | deps: 3 | versions: 17
Thanks in advance.
Has there been an update on this?