move http static resources from termd jar into core module. #924

This commit is contained in:
hengyunabc
2019-11-10 01:16:21 +08:00
parent 818d83c11c
commit 0a4ff9edeb
14 changed files with 9727 additions and 21 deletions
@@ -66,7 +66,7 @@ public class HttpRequestHandler extends SimpleChannelInboundHandler<FullHttpRequ
if (fileViewResult != null) {
response = fileViewResult;
} else {
URL res = HttpTtyConnection.class.getResource("/io/termd/core/http" + path);
URL res = HttpTtyConnection.class.getResource("/com/taobao/arthas/core/http" + path);
if (res != null) {
DefaultFullHttpResponse fullResp = new DefaultFullHttpResponse(request.protocolVersion(),
HttpResponseStatus.OK);
@@ -99,7 +99,7 @@ public class HttpRequestHandler extends SimpleChannelInboundHandler<FullHttpRequ
}
}
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
} finally {
ctx.write(response);