| 103 | { |
| 104 | |
| 105 | bool isS3WrongSigningRegionBadRequest(int status_code, const Poco::Net::HTTPMessage & response) |
| 106 | { |
| 107 | if (status_code != Poco::Net::HTTPResponse::HTTP_BAD_REQUEST) |
| 108 | return false; |
| 109 | if (!response.has("x-amz-bucket-region")) |
| 110 | return false; |
| 111 | return !response.get("x-amz-bucket-region").empty(); |
| 112 | } |
| 113 | |
| 114 | PocoHTTPClientConfiguration::PocoHTTPClientConfiguration( |
| 115 | std::function<ProxyConfiguration()> per_request_configuration_, |