Proper passing of query parameters in initiate multipart upload.

This commit is contained in:
Vladimir Chebotarev 2019-09-19 10:16:39 +00:00
parent a88d795f0f
commit a5d6bd9e01

View File

@ -98,7 +98,7 @@ void WriteBufferFromS3::initiate()
Poco::URI initiate_uri = uri;
initiate_uri.setRawQuery("uploads");
auto params = uri.getQueryParameters();
for (QueryParameters::const_iterator it = params.begin(); it != params.end(); ++it)
for (auto it = params.begin(); it != params.end(); ++it)
{
initiate_uri.addQueryParameter(it->first, it->second);
}