Browse Source

fix

master
mortie 6 years ago
parent
commit
af8e148ad9
2 changed files with 2 additions and 3 deletions
  1. 1
    2
      js/static.js
  2. 1
    1
      package.json

+ 1
- 2
js/static.js View File

@@ -64,7 +64,7 @@ function sendfile(path, app, pathname, req, res) {

var transformCache = {};
function handleTransform(stat, path, req, res, app) {
var ext = pathlib.extname(path).substring(1);
var ext = pathlib.extname(path);
if (ext === "")
return false;

@@ -79,7 +79,6 @@ function handleTransform(stat, path, req, res, app) {
res.end(c.data.content);
return true;
} else {
console.log("throwing out because ctime.");
delete transformCache[path];
}
}

+ 1
- 1
package.json View File

@@ -1,6 +1,6 @@
{
"name": "webframe",
"version": "0.8.0",
"version": "0.8.1",
"description": "Web framework.",
"main": "index.js",
"scripts": {

Loading…
Cancel
Save