Skip to content

Commit 90d2237

Browse files
committed
Remove consumes = {"text/plain"} on document get.
1 parent 725f42e commit 90d2237

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎wise-api/src/main/java/com/wisemapping/rest/MindmapController.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ public void updateRevertMindmap(@PathVariable int id, @PathVariable String hid)
286286
}
287287

288288
@PreAuthorize("permitAll()")
289-
@RequestMapping(method = RequestMethod.GET, value = { "/{id}/document/xml", "/{id}/document/xml-pub" }, consumes = {
290-
"text/plain" }, produces = { "application/xml; charset=UTF-8" })
289+
@RequestMapping(method = RequestMethod.GET, value = { "/{id}/document/xml",
290+
"/{id}/document/xml-pub" }, produces = { "application/xml; charset=UTF-8" })
291291
@ResponseBody
292292
public byte[] retrieveDocument(@PathVariable int id, @NotNull HttpServletResponse response)
293293
throws WiseMappingException, IOException {
@@ -342,8 +342,8 @@ public void updateDocument(@PathVariable int id, @RequestBody String xmlDoc) thr
342342
}
343343

344344
@PreAuthorize("isAuthenticated() and hasRole('ROLE_USER')")
345-
@RequestMapping(method = RequestMethod.GET, value = { "/{id}/{hid}/document/xml" }, consumes = {
346-
"text/plain" }, produces = { "application/xml; charset=UTF-8" })
345+
@RequestMapping(method = RequestMethod.GET, value = { "/{id}/{hid}/document/xml" }, produces = {
346+
"application/xml; charset=UTF-8" })
347347
@ResponseBody
348348
public byte[] retrieveDocument(@PathVariable int id, @PathVariable int hid, @NotNull HttpServletResponse response)
349349
throws WiseMappingException, IOException {

0 commit comments

Comments
 (0)