Changed default content-type to text/html

This commit is contained in:
Sdogruyol 2015-10-28 21:54:04 +02:00
parent 3b4aeb6ea5
commit 1c53321026
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ describe "Context" do
end
request = HTTP::Request.new("GET", "/")
response = kemal.call(request)
response.headers["Content-Type"].should eq("text/plain")
response.headers["Content-Type"].should eq("text/html")
end
it "sets content type" do

View file

@ -4,7 +4,7 @@ class Kemal::Context
getter content_type
def initialize(@request, @params)
@content_type = "text/plain"
@content_type = "text/html"
end
def set_content_type(content_type)