瀏覽代碼

realm

master
michael 4 年之前
父節點
當前提交
c275e6f6f0
共有 1 個檔案被更改,包括 12 行新增1 行删除
  1. +12
    -1
      src/index.ts

+ 12
- 1
src/index.ts 查看文件

@@ -52,7 +52,7 @@ for (let nuser = 0 ; nuser < users.length; nuser++) {
console.log(user);
}

const httpAuthentication = new webdav.HTTPBasicAuthentication(userManager);
const httpAuthentication = new webdav.HTTPBasicAuthentication(userManager, config.realm);

const serverOptions: webdav.WebDAVServerOptions = {
port: config.port || 8080,
@@ -64,6 +64,17 @@ const serverOptions: webdav.WebDAVServerOptions = {

const server = new webdav.WebDAVServer(serverOptions);

/*
server.afterRequest((arg, next) => {
// Display the method, the URI, the returned status code and the returned message
console.log('>>', arg.request.method, arg.requested.uri, '>', arg.response.statusCode, arg.response.statusMessage);
// If available, display the body of the response
console.log(arg.responseBody);
next();
});
*/


let nMount = 0;

//@ts-ignore


Loading…
取消
儲存