Skip to content

Commit

Permalink
return correct content type for SVG images (crystal-lang#5605)
Browse files Browse the repository at this point in the history
  • Loading branch information
damianham authored and RX14 committed Jan 18, 2018
1 parent 1210596 commit a29e21b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/http/server/handlers/static_file_handler.cr
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ class HTTP::StaticFileHandler
when ".htm", ".html" then "text/html"
when ".css" then "text/css"
when ".js" then "application/javascript"
when ".svg" then "image/svg+xml"
else "application/octet-stream"
end
end
Expand Down

0 comments on commit a29e21b

Please sign in to comment.