mirror of
https://gitee.com/BDWare/agent-backend
synced 2025-01-10 01:44:14 +00:00
feat: DOPI/{contractID}/assets/ automatically append index.html
This commit is contained in:
parent
d634ebefb3
commit
db15d105be
@ -5,6 +5,8 @@ plugins {
|
||||
|
||||
mainClassName = 'org.bdware.server.CMHttpServer'
|
||||
|
||||
|
||||
|
||||
application {
|
||||
mainClass = mainClassName
|
||||
applicationDefaultJvmArgs = ['-Dfile.encoding=UTF-8', '-Djava.library.path="./dynamicLibrary"']
|
||||
|
@ -212,6 +212,8 @@ public class DOIPOverHttpHandler {
|
||||
int index = data[0].length() + data[1].length() + data[2].length() + 2;
|
||||
String path = fulluri.substring(index);
|
||||
path = path.replaceAll("\\?.*$", "");
|
||||
if (path.equals("/assets/"))
|
||||
path+="index.html";
|
||||
transformedParam.addProperty("argument", path);
|
||||
}
|
||||
if (assetPath.startsWith("ypk?")) {
|
||||
|
Loading…
Reference in New Issue
Block a user