Starting with "application/grpc"

This commit is contained in:
xqzr 2024-08-02 22:32:28 +08:00 committed by GitHub
parent 2988294bdc
commit 8c9e1c5f4f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;