From 2eb35933271d5b2ef1ca29aaa8f00f6748c56424 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sat, 4 May 2019 13:21:20 -0600 Subject: Begin implementing HTTP replacer and static responder --- modules/caddyhttp/matchers.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'modules/caddyhttp/matchers.go') diff --git a/modules/caddyhttp/matchers.go b/modules/caddyhttp/matchers.go index 21cc19f..731832b 100644 --- a/modules/caddyhttp/matchers.go +++ b/modules/caddyhttp/matchers.go @@ -139,11 +139,11 @@ func (m matchHeader) Match(r *http.Request) bool { // Interface guards var ( - _ RouteMatcher = matchHost{} - _ RouteMatcher = matchPath{} - _ RouteMatcher = matchMethod{} - _ RouteMatcher = matchQuery{} - _ RouteMatcher = matchHeader{} - _ RouteMatcher = new(matchProtocol) - _ RouteMatcher = new(matchScript) + _ RouteMatcher = (*matchHost)(nil) + _ RouteMatcher = (*matchPath)(nil) + _ RouteMatcher = (*matchMethod)(nil) + _ RouteMatcher = (*matchQuery)(nil) + _ RouteMatcher = (*matchHeader)(nil) + _ RouteMatcher = (*matchProtocol)(nil) + _ RouteMatcher = (*matchScript)(nil) ) -- cgit v1.2.3