Open VolkovSec opened 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.
any update on this??
Just checking on this Any Update
i've got same issue. Not solved?
sync-request@6.1.0 | MIT | deps: 3 | versions: 17
Thanks in advance.
Has there been an update on this?
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.