Skip to content

Commit

Permalink
Update Javalin sample to use the correct method type
Browse files Browse the repository at this point in the history
  • Loading branch information
jkschneider committed May 14, 2020
1 parent 00c2771 commit 7507dab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public Iterable<Tag> getTags(HttpServletRequest request, HttpServletResponse res
response.setHeader(EXCEPTION_HEADER, null);

String uri = app.servlet().getMatcher()
.findEntries(HandlerType.GET, request.getPathInfo())
.findEntries(HandlerType.valueOf(request.getMethod()), request.getPathInfo())
.stream()
.findAny()
.map(HandlerEntry::getPath)
Expand Down

0 comments on commit 7507dab

Please sign in to comment.