Skip to content

Commit 4fc63e1

Browse files
authored
YMQ: Do not send x-amz-crc32 HTTP header (AWS does not do it) (25-1-2) (#20705)
2 parents 384aa60 + 773cda6 commit 4fc63e1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ydb/core/http_proxy/http_req.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ namespace NKikimr::NHttpProxy {
181181
constexpr TStringBuf REQUEST_FORWARDED_FOR = "x-forwarded-for";
182182
constexpr TStringBuf REQUEST_TARGET_HEADER = "x-amz-target";
183183
constexpr TStringBuf REQUEST_CONTENT_TYPE_HEADER = "content-type";
184-
constexpr TStringBuf CRC32_HEADER = "x-amz-crc32";
185184
constexpr TStringBuf CREDENTIAL_PARAM = "Credential";
186185

187186

@@ -1173,7 +1172,6 @@ namespace NKikimr::NHttpProxy {
11731172
response->Set<&NHttp::THttpResponse::Connection>(request->GetConnection());
11741173
response->Set(REQUEST_ID_HEADER_EXT, RequestId);
11751174
if (!contentType.empty() && !body.empty()) {
1176-
response->Set(CRC32_HEADER, ToString(crc32(body.data(), body.size())));
11771175
response->Set<&NHttp::THttpResponse::ContentType>(contentType);
11781176
if (!request->Endpoint->CompressContentTypes.empty()) {
11791177
contentType = NHttp::Trim(contentType.Before(';'), ' ');

0 commit comments

Comments
 (0)