File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/aws-cpp-sdk-core/source/internal Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments