mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Make session accept more types
This commit is contained in:
parent
cf2144636d
commit
6d4bf575cb
2 changed files with 7 additions and 4 deletions
|
@ -47,7 +47,7 @@ describe "Kemal::Middleware::CSRF" do
|
|||
client_response = HTTP::Client::Response.from_io(io, decompress: false)
|
||||
client_response.status_code.should eq 403
|
||||
|
||||
current_token = context.session["csrf"]
|
||||
current_token = context.session["csrf"].as(String)
|
||||
|
||||
handler = Kemal::Middleware::CSRF.new
|
||||
request = HTTP::Request.new("POST", "/",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue