@jnode/server 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/handlers.js +1 -1
package/package.json
CHANGED
package/src/handlers.js
CHANGED
|
@@ -54,7 +54,7 @@ class DataHandler {
|
|
|
54
54
|
// file handler: local file
|
|
55
55
|
class FileHandler {
|
|
56
56
|
constructor(file, options = {}) {
|
|
57
|
-
this.file = path.resolve(
|
|
57
|
+
this.file = path.resolve(file);
|
|
58
58
|
this.options = options;
|
|
59
59
|
|
|
60
60
|
// range may be disabled by `options.disableRange` or when `statusCode` is set to non-200 value
|