The content-type was initialized to application/json. Therefore it was
applied even for the DELETE request where it is not needed.
When initialized with NULL text/plain will be used instead.
JIRA: NETCONF-732
Change-Id: If369baccfb9b478ff8857a9da7ebd5c1173e4c8d
Signed-off-by: Tibor Král <tibor.kral@pantheon.tech>
(cherry picked from commit
849e00b3147552250e1713032aa6ff7c478577ab)
requestContentType = this.opts.requestContentType;
}
} else {
+ if (this.type === "DELETE") {
+ requestContentType = null;
+ }
if (((function() {
var _i, _len, _ref, _results;
_ref = this.operation.parameters;
requestContentType = this.opts.requestContentType;
}
} else {
+ if (this.type === "DELETE") {
+ requestContentType = null;
+ }
if (((function() {
var _i, _len, _ref, _results;
_ref = this.operation.parameters;