diff options
-rw-r--r-- | modules/caddyhttp/matchers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/matchers.go b/modules/caddyhttp/matchers.go index 9b127db..1a49b3c 100644 --- a/modules/caddyhttp/matchers.go +++ b/modules/caddyhttp/matchers.go @@ -667,7 +667,7 @@ func (MatchProtocol) CaddyModule() caddy.ModuleInfo { func (m MatchProtocol) Match(r *http.Request) bool { switch string(m) { case "grpc": - return r.Header.Get("content-type") == "application/grpc" + return strings.HasPrefix(r.Header.Get("content-type"), "application/grpc") case "https": return r.TLS != nil case "http": |