Code Review
/
netconf.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Clear the initial content-type for DELETE requests
[netconf.git]
/
restconf
/
sal-rest-docgen
/
src
/
main
/
resources
/
explorer
/
lib
/
swagger.js
diff --git
a/restconf/sal-rest-docgen/src/main/resources/explorer/lib/swagger.js
b/restconf/sal-rest-docgen/src/main/resources/explorer/lib/swagger.js
index e45e62f815bee875128d228470717489e7ff7449..0a393ea1fb271e81e4b5c1a9462a832b34e147b9 100644
(file)
--- a/
restconf/sal-rest-docgen/src/main/resources/explorer/lib/swagger.js
+++ b/
restconf/sal-rest-docgen/src/main/resources/explorer/lib/swagger.js
@@
-951,6
+951,9
@@
requestContentType = this.opts.requestContentType;
}
} else {
+ if (this.type === "DELETE") {
+ requestContentType = null;
+ }
if (((function() {
var _i, _len, _ref, _results;
_ref = this.operation.parameters;