summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/responsematchers.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/caddyhttp/responsematchers.go')
-rw-r--r--modules/caddyhttp/responsematchers.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/modules/caddyhttp/responsematchers.go b/modules/caddyhttp/responsematchers.go
index 821def9..6bac780 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()