mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Add "headers" helper to make it easier to add headers to response.
This commit is contained in:
parent
c492ede5d3
commit
fbbb43dcab
2 changed files with 21 additions and 0 deletions
|
@ -57,3 +57,7 @@ end
|
|||
def serve_static(status)
|
||||
Kemal.config.serve_static = status
|
||||
end
|
||||
|
||||
def headers(env, additional_headers)
|
||||
env.response.headers.merge!(additional_headers)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue