From 34d78cc926ed3aeb3c7d4abd72f07a290f53190a Mon Sep 17 00:00:00 2001 From: xqzr <34030394+xqzr@users.noreply.github.com> Date: Fri, 2 Aug 2024 22:33:20 +0800 Subject: [PATCH] Starting with "application/grpc" --- Trojan-gRPC-Caddy2/Nginx/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Trojan-gRPC-Caddy2/Nginx/README.md b/Trojan-gRPC-Caddy2/Nginx/README.md index 1a71e1a..458f01e 100644 --- a/Trojan-gRPC-Caddy2/Nginx/README.md +++ b/Trojan-gRPC-Caddy2/Nginx/README.md @@ -23,7 +23,7 @@ server { keepalive_timeout 30m; # 在 location 后填写 /你的 ServiceName location /你的 ServiceName { - if ($content_type !~ "application/grpc") { + if ($content_type !~ "^application/grpc") { return 404; } client_max_body_size 0;