From 773cda6e49b3af3c6f42104a04623573db619fa1 Mon Sep 17 00:00:00 2001 From: Sergey Skovorodkin Date: Wed, 2 Jul 2025 14:00:19 +0000 Subject: [PATCH] YMQ: Do not send x-amz-crc32 HTTP header (AWS does not do it) --- ydb/core/http_proxy/http_req.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/ydb/core/http_proxy/http_req.cpp b/ydb/core/http_proxy/http_req.cpp index f384def0c3d2..9d12834451ce 100644 --- a/ydb/core/http_proxy/http_req.cpp +++ b/ydb/core/http_proxy/http_req.cpp @@ -181,7 +181,6 @@ namespace NKikimr::NHttpProxy { constexpr TStringBuf REQUEST_FORWARDED_FOR = "x-forwarded-for"; constexpr TStringBuf REQUEST_TARGET_HEADER = "x-amz-target"; constexpr TStringBuf REQUEST_CONTENT_TYPE_HEADER = "content-type"; - constexpr TStringBuf CRC32_HEADER = "x-amz-crc32"; constexpr TStringBuf CREDENTIAL_PARAM = "Credential"; @@ -1173,7 +1172,6 @@ namespace NKikimr::NHttpProxy { response->Set<&NHttp::THttpResponse::Connection>(request->GetConnection()); response->Set(REQUEST_ID_HEADER_EXT, RequestId); if (!contentType.empty() && !body.empty()) { - response->Set(CRC32_HEADER, ToString(crc32(body.data(), body.size()))); response->Set<&NHttp::THttpResponse::ContentType>(contentType); if (!request->Endpoint->CompressContentTypes.empty()) { contentType = NHttp::Trim(contentType.Before(';'), ' ');