diff --git a/dist/webdav-cli.server.js b/dist/webdav-cli.server.js index 0291c95..582f2c2 100644 --- a/dist/webdav-cli.server.js +++ b/dist/webdav-cli.server.js @@ -106,11 +106,8 @@ class WebdavCli { }); server.config = config; server.beforeRequest(async (ctx, next) => { - console.log( - ctx.request.method, - ctx.request.url, - ctx.request.headers, - ); + const { url, headers, method } = ctx.request; + console.log({ method, url }, headers); next(); }); server.afterRequest((arg, next) => { diff --git a/src/webdav-cli.server.ts b/src/webdav-cli.server.ts index e3009e9..6447df1 100644 --- a/src/webdav-cli.server.ts +++ b/src/webdav-cli.server.ts @@ -135,11 +135,8 @@ export class WebdavCli { } catch {} } } }*/ - console.log( - ctx.request.method, - ctx.request.url, - ctx.request.headers, - ); + const { url, headers, method } = ctx.request; + console.log({ method, url }, headers); next(); });