diff options
Diffstat (limited to 'modules/caddyhttp/responsematchers.go')
-rw-r--r-- | modules/caddyhttp/responsematchers.go | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/modules/caddyhttp/responsematchers.go b/modules/caddyhttp/responsematchers.go index 821def97e..6bac7800b 100644 --- a/modules/caddyhttp/responsematchers.go +++ b/modules/caddyhttp/responsematchers.go @@ -58,15 +58,14 @@ func (rm ResponseMatcher) matchStatusCode(statusCode int) bool { // ParseNamedResponseMatcher parses the tokens of a named response matcher. // -// @name { -// header <field> [<value>] -// status <code...> -// } +// @name { +// header <field> [<value>] +// status <code...> +// } // // Or, single line syntax: // -// @name [header <field> [<value>]] | [status <code...>] -// +// @name [header <field> [<value>]] | [status <code...>] func ParseNamedResponseMatcher(d *caddyfile.Dispenser, matchers map[string]ResponseMatcher) error { for d.Next() { definitionName := d.Val() |