From 4bb9d650ce8908d43ce0b2aedd0cd9ac6ac1ea3c Mon Sep 17 00:00:00 2001 From: long76 <18124433+long76@users.noreply.github.com> Date: Mon, 9 Dec 2024 17:58:33 +0300 Subject: [PATCH] fix: getMethod must be not static --- servlet/src/main/java/io/grpc/servlet/ServletAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servlet/src/main/java/io/grpc/servlet/ServletAdapter.java b/servlet/src/main/java/io/grpc/servlet/ServletAdapter.java index 160aec9f83b..0b9a8f8965b 100644 --- a/servlet/src/main/java/io/grpc/servlet/ServletAdapter.java +++ b/servlet/src/main/java/io/grpc/servlet/ServletAdapter.java @@ -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) {