Fix missed if_op refactor. Ensure with tests.

This commit is contained in:
Abiola Ibrahim
2016-06-21 20:41:09 +01:00
parent e585a74115
commit cad9b3f62f
2 changed files with 23 additions and 2 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ import (
"github.com/mholt/caddy/caddyfile"
)
// SetupIfMatcher parses `if` or `if_type` in the current dispenser block.
// SetupIfMatcher parses `if` or `if_op` in the current dispenser block.
// It returns a RequestMatcher and an error if any.
func SetupIfMatcher(c caddyfile.Dispenser) (RequestMatcher, error) {
var matcher IfMatcher
@@ -195,5 +195,5 @@ func (m IfMatcher) Or(r *http.Request) bool {
// IfMatcherKeyword returns if k is a keyword for 'if' config block.
func IfMatcherKeyword(k string) bool {
return k == "if" || k == "if_cond"
return k == "if" || k == "if_op"
}