Skip to content

Commit

Permalink
Some TODOs related to URL handling
Browse files Browse the repository at this point in the history
  • Loading branch information
aladagemre committed Jan 22, 2016
1 parent 74abec5 commit 6f65ab6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/statique/FullStaticFileHandler.cr
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ class FullStaticFileHandler < HTTP::StaticFileHandler
if request_path[-1] == '/'
static_path = @publicdir + request_path + "index.html"
elsif !request_path.ends_with?(".html")
# TODO: Other extensions will be discarded.
# TODO: if doesn't have an extension, redirect to url with / at the end if there exists that folder.
static_path = @publicdir + request_path + "/" + "index.html"
else
static_path = @publicdir + request_path
Expand Down

0 comments on commit 6f65ab6

Please sign in to comment.