Skip to content

Commit

Permalink
feat: add .css and .js file extensions to middleware that sets the ac…
Browse files Browse the repository at this point in the history
…cept header
  • Loading branch information
bethesque committed Mar 31, 2019
1 parent f1478e9 commit eb1cd32
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ class ConvertFileExtensionToAcceptHeader
".csv" => "text/csv",
".svg" => "image/svg+xml",
".json" => "application/hal+json",
".yaml" => "application/yaml"
".yaml" => "application/yaml",
".css" => "text/css",
".js" => "text/javascript"
}

def initialize app
Expand Down

0 comments on commit eb1cd32

Please sign in to comment.