Skip to content

Commit 8859fc1

Browse files
committed
clean up
1 parent de12417 commit 8859fc1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/aws-cpp-sdk-core/source/internal/AWSHttpResourceClient.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,9 @@ namespace Aws
132132
AmazonWebServiceResult<Aws::String> AWSHttpResourceClient::GetResourceWithAWSWebServiceResult(const std::shared_ptr<HttpRequest> &httpRequest) const
133133
{
134134
AWS_LOGSTREAM_TRACE(m_logtag.c_str(), "Retrieving credentials from " << httpRequest->GetURIString());
135-
Aws::Http::URI uri(httpRequest->GetURIString());
136-
if (!Aws::Utils::IsValidHost(uri.GetHost())) {
137-
AWS_LOGSTREAM_FATAL(m_logtag.c_str(), "Invalid endpoint host constructed: "<< uri.GetHost());
138-
return {{}, {}, HttpResponseCode::REQUEST_NOT_MADE};
135+
if (!Aws::Utils::IsValidHost(httpRequest->GetUri().GetHost())) {
136+
AWS_LOGSTREAM_FATAL(m_logtag.c_str(), "Invalid endpoint host constructed: " << httpRequest->GetURIString());
137+
return {{}, {}, HttpResponseCode::REQUEST_NOT_MADE};
139138
}
140139

141140
if (!m_httpClient)

0 commit comments

Comments
 (0)