Skip to content

Commit

Permalink
Added the server options 'serverName' and 'version' to display in the…
Browse files Browse the repository at this point in the history
… 'Server' HTTP header
  • Loading branch information
AdrienCastex committed Jun 15, 2017
1 parent 84bd1c9 commit fd4158b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/server/WebDAVServerOptions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export declare class WebDAVServerOptions {
hostname?: string;
https?: https.ServerOptions;
port?: number;
serverName?: string;
version?: string;
autoSave?: {
treeFilePath: string;
tempTreeFilePath: string;
Expand Down
2 changes: 2 additions & 0 deletions lib/server/WebDAVServerOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ var WebDAVServerOptions = (function () {
this.hostname = '::';
this.https = null;
this.port = 1900;
this.serverName = 'webdav-server';
this.version = '1.5.0';
this.autoSave = null;
}
return WebDAVServerOptions;
Expand Down
2 changes: 2 additions & 0 deletions src/server/WebDAVServerOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export class WebDAVServerOptions
hostname ?: string = '::'
https ?: https.ServerOptions = null
port ?: number = 1900
serverName ?: string = 'webdav-server'
version ?: string = '1.5.0'
autoSave ?: {
treeFilePath : string
tempTreeFilePath : string
Expand Down

0 comments on commit fd4158b

Please sign in to comment.