Comparing version 0.1.2 to 0.1.4
@@ -18,3 +18,3 @@ { | ||
], | ||
"version": "0.1.2", | ||
"version": "0.1.4", | ||
"url": "https://github.com/DoubleSpout/ifile", | ||
@@ -21,0 +21,0 @@ "homepage": "https://github.com/DoubleSpout/ifile", |
@@ -1,2 +0,2 @@ | ||
# ifile(fast and simple nodejs http/https static file module) | ||
# ifile(fast and simple nodejs http/https static file module)[![Build Status](https://travis-ci.org/DoubleSpout/ifile.png?branch=master)](https://travis-ci.org/DoubleSpout/ifile) | ||
@@ -3,0 +3,0 @@ ifile is a simple static http/https handler module, build with libuv and c++. |
@@ -9,3 +9,3 @@ var ifile = require('../index.js'); | ||
["static2","static2"], | ||
["static3/static3/","static2",['js','css']] | ||
["static3/static3/","static2",['js','css','xml']] | ||
],function(req, res, isStatic){ | ||
@@ -45,4 +45,4 @@ | ||
var testjs2 = fs.readFileSync(path.join(__dirname,'static2','static3','static3','test.js')) | ||
var testjs2_stat = fs.statSync(path.join(__dirname,'static2','static3','static3','test.js')) | ||
var testjs2 = fs.readFileSync(path.join(__dirname,'static2','static3','static3','test.xml')) | ||
var testjs2_stat = fs.statSync(path.join(__dirname,'static2','static3','static3','test.xml')) | ||
@@ -293,3 +293,3 @@ | ||
request('/static3/static3/test.js', {}, function(err,res,buf){ | ||
request('/static3/static3/test.xml', {}, function(err,res,buf){ | ||
@@ -303,3 +303,3 @@ if(err) throw(err); | ||
assert.equal(res.headers["content-length"], testjs2_stat.size) | ||
assert.equal(res.headers["content-type"], 'application/javascript') | ||
assert.equal(res.headers["content-type"], 'application/xml') | ||
assert.equal(buf.toString(), testjs2.toString()); | ||
@@ -334,3 +334,3 @@ | ||
request('/static3/static3/test.js', {"Accept-Encoding":"gzip,deflate,sdch"}, function(err,res,buf){ | ||
request('/static3/static3/test.xml', {"Accept-Encoding":"gzip,deflate,sdch"}, function(err,res,buf){ | ||
@@ -344,3 +344,3 @@ if(err) throw(err); | ||
assert.equal(res.headers["content-type"], 'application/javascript') | ||
assert.equal(res.headers["content-type"], 'application/xml') | ||
assert.equal(res.headers["content-encoding"], 'gzip') | ||
@@ -347,0 +347,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
13104865
761
4