mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
Avoid static file corruption (small.png) on Windows
When using `logstash web` on Windows the Kibana Logo on the dashboard is broken. This is because it will return small.png with 479 instead of 480 bytes (removing a 0x0d). Fixes #1796
This commit is contained in:
parent
9dbd52583b
commit
554f6852d3
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ module LogStash::Kibana
|
|||
if File.exists?(path)
|
||||
ext = path.split(".").last
|
||||
content_type MIME::Types.type_for(ext).first.to_s
|
||||
body File.new(path, "r").read
|
||||
body File.new(path, "rb").read
|
||||
else
|
||||
status 404
|
||||
content_type "text/plain"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue