Selaa lähdekoodia

Starting with "application/grpc"

xqzr 1 vuosi sitten
vanhempi
sitoutus
34d78cc926
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Trojan-gRPC-Caddy2/Nginx/README.md

+ 1 - 1
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;