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


読み込み中…
キャンセル
保存