Skip to content

Commit

Permalink
NOJIRA
Browse files Browse the repository at this point in the history
Missed updating one header location path
  • Loading branch information
chasegawa committed May 25, 2021
1 parent da4c142 commit 7229ea5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public ResponseEntity<?> delete(@PathVariable String name) {
if (cad == null) {
HttpHeaders headers = new HttpHeaders();
headers.setLocation(
ServletUriComponentsBuilder.fromCurrentServletMapping().path("/api/custom/attribute/" + name).build().toUri());
ServletUriComponentsBuilder.fromCurrentServletMapping().path("/api/custom/entity/attribute/" + name).build().toUri());

return ResponseEntity.status(HttpStatus.NOT_FOUND).headers(headers)
.body(new ErrorResponse(String.valueOf(HttpStatus.NOT_FOUND.value()),
Expand Down

0 comments on commit 7229ea5

Please sign in to comment.