Skip to content

Commit b385646

Browse files
committed
typo fix
1 parent 07832c0 commit b385646

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
@@ -80,7 +80,7 @@ function serve_file(fw, req::HTTP.Request)
8080
content = read(fs_path, String)
8181

8282
# if html, add the browser-sync script to it
83-
if splitext(fs_path)[2] == "html"
83+
if ext == "html"
8484
end_body_match = match(r"</body>", content)
8585
if end_body_match === nothing
8686
# no </body> tag found, trying to add the reload script at the end; this may fail.

0 commit comments

Comments
 (0)