Fix checking for embedded error in PocoHTTPClient.

This commit is contained in:
Vitaly Baranov 2022-12-22 02:50:38 +01:00
parent 1eb0d5db16
commit e23c42d042
2 changed files with 2 additions and 2 deletions

2
contrib/aws vendored

@ -1 +1 @@
Subproject commit e15b0695c5b3c0f8dc15c89b5e7eb73b2747fdec
Subproject commit 6b469eeff9782698bb9a2607b9668d905922d7a7

View File

@ -177,7 +177,7 @@ namespace
bool checkRequestCanReturn2xxAndErrorInBody(Aws::Http::HttpRequest & request)
{
auto query_params = request.GetQueryStringParameters();
if (request.HasHeader("z-amz-copy-source"))
if (request.HasHeader("x-amz-copy-source"))
{
/// CopyObject https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html
if (query_params.empty())