Commit cdaac669 by Johannes Stelzer

Fix HTTP-406 for HEAD request on /logfile

parent a114f8b9
...@@ -109,12 +109,12 @@ public class LogfileMvcEndpoint implements MvcEndpoint { ...@@ -109,12 +109,12 @@ public class LogfileMvcEndpoint implements MvcEndpoint {
@RequestMapping(method = RequestMethod.HEAD) @RequestMapping(method = RequestMethod.HEAD)
@ResponseBody @ResponseBody
public ResponseEntity<Void> available() { public ResponseEntity<Object> available() {
if (isAvailable()) { if (isAvailable()) {
return new ResponseEntity<Void>(HttpStatus.OK); return new ResponseEntity<Object>(HttpStatus.OK);
} }
else { else {
return new ResponseEntity<Void>(HttpStatus.NOT_FOUND); return new ResponseEntity<Object>(HttpStatus.NOT_FOUND);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment