Skip to content

Commit 3fa6d47

Browse files
author
Johann Pardanaud
committed
Add missing documentation for replace configuration
1 parent 24f5e9e commit 3fa6d47

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
## [Unreleased]
88
### Fixed
99
- Add missing support for `replace` in the configuration.
10+
- Add missing documentation for `replace` configuration.
1011

1112
## [1.1.0] - 2021-07-16
1213
### Added

src/Resources/doc/usage.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,19 @@ batch_headers:
4242
value: max-age=31536000, public
4343
condition: response.headers.get('Content-Type') matches '^image/'
4444
```
45+
46+
## Duplicated headers
47+
48+
If you need to output multiple values for a single header name (e.g. `Set-Cookie`), use `replace: false` in the configuration:
49+
50+
```yaml
51+
batch_headers:
52+
headers:
53+
- name: Set-Cookie
54+
value: user_language=fr_FR
55+
replace: false
56+
57+
- name: Set-Cookie
58+
value: user_currency=EUR
59+
replace: false
60+
```

0 commit comments

Comments
 (0)