Skip to content

Commit

Permalink
return the correct mimetype for JS
Browse files Browse the repository at this point in the history
  • Loading branch information
hojberg committed Jan 6, 2012
1 parent b53916e commit ae25107
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rack/combobot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def self.configure(*args)
end

MIME_TYPES = {
"js" => "css/javascript",
"js" => "text/javascript",
"css" => "text/css"
}

Expand Down
2 changes: 1 addition & 1 deletion spec/rack_combobot_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"QUERY_STRING" => "js1.js&js2.js"
}).must_equal([
200,
{"Content-Type" => "css/javascript"},
{"Content-Type" => "text/javascript"},
"function lorem() { return \"a\"; }\nfunction ipsum() { return \"b\"; }\n"
])
end
Expand Down

0 comments on commit ae25107

Please sign in to comment.