sync-request icon indicating copy to clipboard operation
sync-request copied to clipboard

DELETE request didn't send the body to server

Open VolkovSec opened this issue 5 years ago • 4 comments

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.

VolkovSec avatar Oct 30 '18 09:10 VolkovSec

any update on this??

merugaJS avatar Feb 17 '20 18:02 merugaJS

Just checking on this Any Update

merugaJS avatar Apr 22 '20 01:04 merugaJS

i've got same issue. Not solved?

[email protected] | MIT | deps: 3 | versions: 17

Thanks in advance.

jfvilasat avatar May 29 '21 11:05 jfvilasat

Has there been an update on this?

DaveUJ avatar Jun 15 '21 21:06 DaveUJ