How can I set variable within location? #410
-
Hi, I would like to achieve something like that:
Thanks for any advice |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hello,
If someone would have a more elegant way, please share it. If not, at least maybe my solution could be useful to someone. |
Beta Was this translation helpful? Give feedback.
-
Hey @huwylphimet! You should be able to use |
Beta Was this translation helpful? Give feedback.
Hey @huwylphimet!
You should be able to use
set
within thelocation
block. When a comment saysNot available in the 'http' context
what it means is that it's not available directly within thehttp
block, but it's available elsewhere (server
andlocation
in this case) 😄