We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3f9879 commit 25e0bcfCopy full SHA for 25e0bcf
src/aws-cpp-sdk-core/include/aws/core/http/URI.h
@@ -153,7 +153,7 @@ namespace Aws
153
{
154
m_pathSegments.push_back(segment);
155
}
156
- m_pathHasTrailingSlash = s_preservePathSeparators ? (!segments.empty() && segments.back() == '/') : m_pathSegments.empty() && (!segments.empty() && segments.back() == '/');
+ m_pathHasTrailingSlash = (m_pathSegments.empty() || !s_preservePathSeparators) && (!segments.empty() && segments.back() == '/');
157
158
159
/**
0 commit comments