Skip to content

Commit

Permalink
fix: getMethod must be not static
Browse files Browse the repository at this point in the history
  • Loading branch information
long76 authored Dec 9, 2024
1 parent 2495095 commit 4bb9d65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servlet/src/main/java/io/grpc/servlet/ServletAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOEx
asyncCtx.addListener(new GrpcAsyncListener(stream, logId));
}

private static String getMethod(HttpServletRequest req) {
private String getMethod(HttpServletRequest req) {
Boolean removeContextPath = Boolean.parseBoolean(getInitParameter(REMOVE_CONTEXT_PATH));
String method = req.getRequestURI();
if (removeContextPath) {
Expand Down

0 comments on commit 4bb9d65

Please sign in to comment.