We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07832c0 commit b385646Copy full SHA for b385646
src/server.jl
@@ -80,7 +80,7 @@ function serve_file(fw, req::HTTP.Request)
80
content = read(fs_path, String)
81
82
# if html, add the browser-sync script to it
83
- if splitext(fs_path)[2] == "html"
+ if ext == "html"
84
end_body_match = match(r"</body>", content)
85
if end_body_match === nothing
86
# no </body> tag found, trying to add the reload script at the end; this may fail.
0 commit comments