Permalink
Browse files

Oops, I remember why this was important now

  • Loading branch information...
1 parent e6555f4 commit 727bded12747b11f7c6d44208c0dd58a8ebc4332 @partheseas committed Oct 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 trailer.js
View
@@ -88,7 +88,7 @@ tl.MimeDictionary.prototype.fromApacheFile = function ( path, encoding ) {
if ( line ) {
// Remove multiple spaces, and tabs.
line = line.replace( /\s+/g, ' .' ) // Remove repeat spaces, and give all the extensions dots.
- .split( ' ' )
+ .split( ' ' )
type = line[ 0 ]
extensions = line.slice( 1 )
@@ -363,7 +363,7 @@ tl.GET = tl.POST = tl.HEAD = function ( i, o ) {
check( index + 1 )
}
} else {
- if ( i.depth === 1 && i.extra === "directory.html" ) {
+ if ( !i.depth || ( i.depth === 1 && i.extra === "directory.html" ) ) {
fs.readdir( i.path, function ( error, files ) {
if ( error ) {
if ( error.message.match( /EACCESS/ ) ) {

0 comments on commit 727bded

Please sign in to comment.