Github Oauth,支持自动转换config.ini配置

This commit is contained in:
undefined committed 2020-06-21 13:37:55 +08:00
1 parent 5707f973d7
commit 8476eac3b4
17 files changed
+240 -109

No files matched your search

+2
View File
@@ -133,6 +133,7 @@ class Handler {
files: ctx.request.files,
query: ctx.query,
path: ctx.path,
referer: ctx.request.headers.referer || '/',
};
this.response = {
body: '',
@@ -348,6 +349,7 @@ class Handler {
}
async function handle(ctx, HandlerClass, permission) {
global.Hydro.stat.reqCount++;
const h = new HandlerClass(ctx);
try {
const method = ctx.method.toLowerCase();