mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Changed default content-type to text/html
This commit is contained in:
parent
3b4aeb6ea5
commit
1c53321026
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ describe "Context" do
|
||||||
end
|
end
|
||||||
request = HTTP::Request.new("GET", "/")
|
request = HTTP::Request.new("GET", "/")
|
||||||
response = kemal.call(request)
|
response = kemal.call(request)
|
||||||
response.headers["Content-Type"].should eq("text/plain")
|
response.headers["Content-Type"].should eq("text/html")
|
||||||
end
|
end
|
||||||
|
|
||||||
it "sets content type" do
|
it "sets content type" do
|
||||||
|
|
|
@ -4,7 +4,7 @@ class Kemal::Context
|
||||||
getter content_type
|
getter content_type
|
||||||
|
|
||||||
def initialize(@request, @params)
|
def initialize(@request, @params)
|
||||||
@content_type = "text/plain"
|
@content_type = "text/html"
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_content_type(content_type)
|
def set_content_type(content_type)
|
||||||
|
|
Loading…
Reference in a new issue