mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Merge pull request #185 from raydf/master
Use http-only cookie for session
This commit is contained in:
commit
98199f96f8
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ module Kemal
|
|||
id = SecureRandom.hex
|
||||
end
|
||||
|
||||
ctx.response.cookies[NAME] = id
|
||||
ctx.response.cookies << HTTP::Cookie.new(name: NAME, value: id, http_only: true)
|
||||
@id = id
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue