Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
masx200 committed Sep 1, 2020
1 parent 0d30d5e commit 9a2c4bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions dist/webdav-cli.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
7 changes: 2 additions & 5 deletions src/webdav-cli.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

Expand Down

0 comments on commit 9a2c4bb

Please sign in to comment.