Skip to content

Commit

Permalink
use path.sep
Browse files Browse the repository at this point in the history
  • Loading branch information
haoxin committed Mar 18, 2015
1 parent f2ecc88 commit 4dfc1ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ var crypto = require('crypto')
var fs = require('fs')
var zlib = require('zlib')
var path = require('path')
var path = require('path')
var mime = require('mime-types')
var compressible = require('compressible')
var readDir = require('fs-readdir-recursive')
Expand All @@ -15,7 +16,7 @@ module.exports = function staticCache(dir, options, files) {
}

options = options || {}
options.prefix = (options.prefix || '').replace(/\/$/, '') + '/'
options.prefix = (options.prefix || '').replace(/\/$/, '') + path.sep
files = files || options.files || Object.create(null)
dir = dir || options.dir || process.cwd()
var enableGzip = !!options.gzip
Expand Down

0 comments on commit 4dfc1ee

Please sign in to comment.