Skip to content

Commit 091e581

Browse files
committed
Merge pull request http-party#159 from karolmajta/issue-158
Allows explicitly setting cache to 0, closes http-party#158
2 parents 044ce63 + 48119f9 commit 091e581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/http-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function HttpServer(options) {
4343

4444
this.headers = options.headers || {};
4545

46-
this.cache = options.cache || 3600; // in seconds.
46+
this.cache = options.cache === undefined ? 3600 : options.cache; // in seconds.
4747
this.showDir = options.showDir !== 'false';
4848
this.autoIndex = options.autoIndex !== 'false';
4949
this.contentType = options.contentType || 'application/octet-stream';

0 commit comments

Comments
 (0)