aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorgotocoding <gotocoding@yandex-team.com>2023-06-09 19:57:25 +0300
committergotocoding <gotocoding@yandex-team.com>2023-06-09 19:57:25 +0300
commit2e5e931acb261a6558b4b3762d0a9028ec242670 (patch)
tree33facc82c5a23154f56900d04b8e9f4542197a66 /contrib
parentca86bc92d4c212d4b0eedca237fba606da157eb5 (diff)
downloadydb-2e5e931acb261a6558b4b3762d0a9028ec242670.tar.gz
[grpc] support again GET http requests
Оригинальный PR с удалением поддежки экспериментальных фичей `idempotent/cacheble` : https://github.com/grpc/grpc/pull/28922/files#diff-ecfb39bf6f4efc0bacabfded858c2346ef3b07c91babb8cbc5d4f286b28b70deR108 Старые grpc-клиенты используют `idempotent` флаг и ломаются при походах на новый grpc-server, который уже не поддеживает эту фичу
Diffstat (limited to 'contrib')
-rw-r--r--contrib/libs/grpc/src/core/ext/filters/http/server/http_server_filter.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/libs/grpc/src/core/ext/filters/http/server/http_server_filter.cc b/contrib/libs/grpc/src/core/ext/filters/http/server/http_server_filter.cc
index 8e53cec1ef..716f2f8a88 100644
--- a/contrib/libs/grpc/src/core/ext/filters/http/server/http_server_filter.cc
+++ b/contrib/libs/grpc/src/core/ext/filters/http/server/http_server_filter.cc
@@ -66,13 +66,14 @@ ArenaPromise<ServerMetadataHandle> HttpServerFilter::MakeCallPromise(
switch (*method) {
case HttpMethodMetadata::kPost:
break;
+ case HttpMethodMetadata::kGet:
+ break;
case HttpMethodMetadata::kPut:
if (allow_put_requests_) {
break;
}
Y_ABSL_FALLTHROUGH_INTENDED;
case HttpMethodMetadata::kInvalid:
- case HttpMethodMetadata::kGet:
return Immediate(
ServerMetadataHandle(y_absl::UnknownError("Bad method header")));
}