Skip to content

Commit 5c1e256

Browse files
committed
cosmetics
1 parent 91e9e9e commit 5c1e256

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ function serve_file(
262262
# --> other: just get the browser to show it
263263
#
264264

265-
ext = last(splitext(fs_path))[2:end]
265+
ext = lstrip(last(splitext(fs_path)), '.')
266266
content = read(fs_path, String)
267267

268268
# build the response with appropriate mime type (this is inspired from Mux

0 commit comments

Comments
 (0)