Starting with "application/grpc"

pull/195/head
xqzr 2024-08-02 22:33:20 +08:00 committed by GitHub
parent 8c9e1c5f4f
commit 34d78cc926
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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;