mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
Fix preview mode status/mime issues for static files
This commit is contained in:
parent
3a7d30164d
commit
56b3a176fb
1 changed files with 2 additions and 0 deletions
|
@ -147,6 +147,8 @@ module Middleman
|
||||||
extensionless_path, template_engine = resolve_template(path)
|
extensionless_path, template_engine = resolve_template(path)
|
||||||
|
|
||||||
if !::Tilt.mappings.has_key?(template_engine.to_s)
|
if !::Tilt.mappings.has_key?(template_engine.to_s)
|
||||||
|
content_type mime_type(File.extname(path)), :charset => 'utf-8'
|
||||||
|
status 200
|
||||||
send_file File.join(Middleman::Server.views, path)
|
send_file File.join(Middleman::Server.views, path)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue