http-server
Advanced tools
Comparing version 0.8.2 to 0.8.3
@@ -46,3 +46,3 @@ 'use strict'; | ||
this.cache = options.cache || 3600; // in seconds. | ||
this.cache = options.cache === undefined ? 3600 : options.cache; // in seconds. | ||
this.showDir = options.showDir !== 'false'; | ||
@@ -70,3 +70,3 @@ this.autoIndex = options.autoIndex !== 'false'; | ||
this.headers['Access-Control-Allow-Origin'] = '*'; | ||
this.headers['Access-Control-Allow-Headers'] = 'Origin, X-Requested-With, Content-Type, Accept'; | ||
this.headers['Access-Control-Allow-Headers'] = 'Origin, X-Requested-With, Content-Type, Accept, Range'; | ||
@@ -73,0 +73,0 @@ before.push(corser.create()); |
{ | ||
"name": "http-server", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"description": "A simple zero-configuration command-line http server", | ||
@@ -5,0 +5,0 @@ "main": "./lib/http-server", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
490629