Mention escaping escape characters in YAML for regex usage
This commit is contained in:
parent
918a343557
commit
5d716f0149
5 changed files with 24 additions and 10 deletions
|
@ -284,6 +284,12 @@ http:
|
|||
authResponseHeadersRegex = "^X-"
|
||||
```
|
||||
|
||||
!!! tip
|
||||
|
||||
Regular expressions and replacements can be tested using online tools such as [Go Playground](https://play.golang.org/p/mWU9p-wk2ru) or the [Regex101](https://regex101.com/r/58sIgx/2).
|
||||
|
||||
When defining a regular expression within YAML, any escaped character needs to be escaped twice: `example\.com` needs to be written as `example\\.com`.
|
||||
|
||||
### `authRequestHeaders`
|
||||
|
||||
The `authRequestHeaders` option is the list of the headers to copy from the request to the authentication server.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue