mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Format
This commit is contained in:
parent
6ffa4af0e1
commit
4edebcf8eb
6 changed files with 12 additions and 13 deletions
|
@ -54,7 +54,7 @@ describe "Context" do
|
||||||
key: env.get("key"),
|
key: env.get("key"),
|
||||||
before_get: env.get("before_get"),
|
before_get: env.get("before_get"),
|
||||||
before_get_int: env.get("before_get_int"),
|
before_get_int: env.get("before_get_int"),
|
||||||
before_get_float: env.get("before_get_float")
|
before_get_float: env.get("before_get_float"),
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
request = HTTP::Request.new("GET", "/")
|
request = HTTP::Request.new("GET", "/")
|
||||||
|
|
|
@ -74,7 +74,7 @@ describe "Macros" do
|
||||||
env.response.headers.add "Content-Type", "image/png"
|
env.response.headers.add "Content-Type", "image/png"
|
||||||
headers env, {
|
headers env, {
|
||||||
"Access-Control-Allow-Origin" => "*",
|
"Access-Control-Allow-Origin" => "*",
|
||||||
"Content-Type" => "text/plain"
|
"Content-Type" => "text/plain",
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
require "../spec_helper"
|
require "../spec_helper"
|
||||||
|
|
||||||
describe "Kemal::Middleware::CSRF" do
|
describe "Kemal::Middleware::CSRF" do
|
||||||
|
|
||||||
it "sends GETs to next handler" do
|
it "sends GETs to next handler" do
|
||||||
handler = Kemal::Middleware::CSRF.new
|
handler = Kemal::Middleware::CSRF.new
|
||||||
request = HTTP::Request.new("GET", "/")
|
request = HTTP::Request.new("GET", "/")
|
||||||
|
|
Loading…
Reference in a new issue