Implemented InfoNameLib
This commit is contained in:
@@ -262,6 +262,7 @@ public final class WebCompatMapper {
|
||||
return switch (method) {
|
||||
case GET -> "GET";
|
||||
case POST, EXECUTE, SCRIPT -> "POST";
|
||||
default -> "GET";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -274,7 +275,7 @@ public final class WebCompatMapper {
|
||||
public static WebRequestMethod map100BMethod(String method) {
|
||||
if (method == null) return WebRequestMethod.GET;
|
||||
return switch (method.toUpperCase()) {
|
||||
case "POST" -> WebRequestMethod.POST;
|
||||
case "POST", "SCRIPT", "EXECUTE" -> WebRequestMethod.POST;
|
||||
default -> WebRequestMethod.GET;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user