mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Don't override content_type in Kemal::InitHandler if it's already set
This commit is contained in:
parent
646edb24ca
commit
d1c788f065
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ module Kemal
|
|||
def call(context)
|
||||
context.response.headers.add "X-Powered-By", "Kemal"
|
||||
call_next context
|
||||
context.response.content_type = "text/html"
|
||||
context.response.content_type = "text/html" unless context.response.headers.has_key?("Content-Type")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue