Permalink
Browse files

fixed directory -> index-page handling

  • Loading branch information...
1 parent 6eb32f9 commit d7ef9afb703e1bd20f142a1edc1d2f28352791bb @x6j8x committed Jul 4, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 machine/resource/static/static.factor
@@ -86,7 +86,7 @@ M: static-file-resource generate-etag
"%s-%s" sprintf sha1 checksum-bytes hex-string ;
M: static-file-resource moved-permanently?
- entry>> directory?>> [ "http://127.0.0.1:8080/files/index.html" ] [ f ] if ;
+ dup entry>> directory?>> [ [ request url>> path>> ] dip index-page>> append-path ] [ drop f ] if ;
M: static-file-resource finish-request
"bytes" "Accept-Ranges" set-response-header

0 comments on commit d7ef9af

Please sign in to comment.