add json mime type

parent 2a49e823
......@@ -24,6 +24,7 @@ types {
image/svg+xml svg;
application/java-archive jar war ear;
application/json json;
application/mac-binhex40 hqx;
application/msword doc;
application/pdf pdf;
......
......@@ -32,6 +32,18 @@ RSpec.describe "Simple" do
expect(response.body.chomp).to eq("Hello World")
end
describe "mime/types" do
let(:name) { "mime_types_json" }
context "json" do
it "should serve json as application/json content type" do
response = app.get("/foo.json")
expect(response.code).to eq("200")
expect(response["Content-Type"]).to eq("application/json")
end
end
end
describe "no config" do
let(:name) { "no_config" }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment