map: Fix example typo (close #258)

This commit is contained in:
Matthew Holt 2022-09-05 16:42:48 -06:00
parent be47c4989f
commit c67668615e
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5
2 changed files with 8 additions and 8 deletions

View file

@ -43,15 +43,15 @@ map [<matcher>] <source> <destinations...> {
The following example demonstrates most aspects of this directive:
```caddy-d
map {host} {my_placeholder} {magic_number} {
example.com "some value" 3
foo.example.com "another value"
(.*)\.example.com "${1} subdomain" 5
map {host} {my_placeholder} {magic_number} {
example.com "some value" 3
foo.example.com "another value"
~(.*)\.example\.com$ "${1} subdomain" 5
~.*\.net$ - 7
~.*\.xyz$ - 15
~.*\.net$ - 7
~.*\.xyz$ - 15
default "unknown domain" 42
default "unknown domain" 42
}
```

View file

@ -289,7 +289,7 @@ Passive health checks happen inline with actual proxied requests:
### Streaming
By default, the proxy partially buffers and periodically flushes responses to the client for wire efficiency:
By default, the proxy partially buffers the response for wire efficiency:
- **flush_interval** <span id="flush_interval"/> is a [duration value](/docs/conventions#durations) that adjusts how often Caddy should flush the response buffer to the client. By default, no periodic flushing is done. A negative value (typically -1) suggests "low-latency mode" which disables response buffering completely and flushes immediately after each write to the client, and does not cancel the request to the backend even if the client disconnects early. This option is ignored and responses are flushed immediately to the client if one of the following applies from the response:
- `Content-Type: text/event-stream`