Commit 7e8f1ccb authored by Nils Goroll's avatar Nils Goroll

show caching in example

parent c7bde02d
Pipeline #186 skipped
......@@ -151,12 +151,12 @@ object::
}
# .policy() returns 1 for policy type OPEN
if (config.policy(req.http.Host, req.url) == 1) {
if (config.policy() == 1) {
return(pass);
}
# .policy() returns 2 for policy type TOKEN
if (config.policy(req.http.Host, req.url) == 2) {
if (config.policy() == 2) {
# Handle token authorization ...
# [...]
}
......
......@@ -134,12 +134,12 @@ object::
}
# .policy() returns 1 for policy type OPEN
if (config.policy(req.http.Host, req.url) == 1) {
if (config.policy() == 1) {
return(pass);
}
# .policy() returns 2 for policy type TOKEN
if (config.policy(req.http.Host, req.url) == 2) {
if (config.policy() == 2) {
# Handle token authorization ...
# [...]
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment