Skip to content

Commit

Permalink
fixed 405 error when posting an answer from a specific /write URL
Browse files Browse the repository at this point in the history
  • Loading branch information
albogdano committed Feb 17, 2022
1 parent 70c5c1f commit 05bba29
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public String edit(@PathVariable String id, @RequestParam(required = false) Stri
}
}

@PostMapping({"/{id}", "/{id}/{title}"})
@PostMapping({"/{id}", "/{id}/{title}", "/{id}/{title}/write"})
public String reply(@PathVariable String id, @PathVariable(required = false) String title,
@RequestParam(required = false) Boolean emailme, HttpServletRequest req,
HttpServletResponse res, Model model) {
Expand Down

0 comments on commit 05bba29

Please sign in to comment.