mirror of
https://github.com/caddyserver/website.git
synced 2025-06-22 14:10:32 -04:00
Fix default behavior of field in header directive
This commit is contained in:
parent
caede64af5
commit
5924883bfc
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ header [<matcher>] [[+|-|?]<field> [<value>|<find>] [<replace>]] {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- **<field>** is the name of the header field. By default, will overwrite any existing field of the same name. Prefix with `+` to add the field instead of replace, or prefix with `-` to remove the field.
|
- **<field>** is the name of the header field. By default, will add a new field. If `defer` is enabled, it will overwrite any existing field with the same name. Prefix with `+` to always add the field, or prefix with `-` to remove the field.
|
||||||
- **<value>** is the header field value, if adding or setting a field.
|
- **<value>** is the header field value, if adding or setting a field.
|
||||||
- **<default_value>** is the header field value that will be set only if the header does not already exist.
|
- **<default_value>** is the header field value that will be set only if the header does not already exist.
|
||||||
- **<find>** is the substring or regular expression to search for.
|
- **<find>** is the substring or regular expression to search for.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue