소스 검색

fix

master
mortie 8 년 전
부모
커밋
af8e148ad9
2개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 1
    2
      js/static.js
  2. 1
    1
      package.json

+ 1
- 2
js/static.js 파일 보기

@@ -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 파일 보기

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

Loading…
취소
저장