Skip to content

Commit

Permalink
Merge branch 'master' of github.com:koajs/static-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
dead-horse committed Jul 8, 2015
2 parents 4ce1688 + f92ffab commit 212f4c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
3.1.1 / 2015-04-17
==================

* fix: options.prefix bug in windows, fixes #39

3.1.0 / 2015-03-28
==================
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function safeDecodeURIComponent(text) {
*/

function loadFile(name, dir, options, files) {
var pathname = options.prefix + name
var pathname = path.normalize(path.join(options.prefix, name))
var obj = files[pathname] = files[pathname] ? files[pathname] : {}
var filename = obj.path = path.join(dir, name)
var stats = fs.statSync(filename)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "koa-static-cache",
"description": "Static cache for koa",
"version": "3.1.0",
"version": "3.1.1",
"author": {
"name": "Jonathan Ong",
"email": "me@jongleberry.com",
Expand Down

0 comments on commit 212f4c6

Please sign in to comment.