File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/aws-cpp-sdk-core/source/http Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ Aws::String URI::GetPath() const
206206 path.append (segment);
207207 }
208208
209- if (m_pathSegments.empty () || m_pathHasTrailingSlash)
209+ if (m_pathSegments.empty () || ( m_pathHasTrailingSlash && !s_preservePathSeparators) )
210210 {
211211 path.push_back (' /' );
212212 }
@@ -223,7 +223,7 @@ Aws::String URI::GetURLEncodedPath() const
223223 ss << ' /' << StringUtils::URLEncode (segment.c_str ());
224224 }
225225
226- if (m_pathSegments.empty () || m_pathHasTrailingSlash)
226+ if (m_pathSegments.empty () || ( m_pathHasTrailingSlash && !s_preservePathSeparators) )
227227 {
228228 ss << ' /' ;
229229 }
@@ -243,7 +243,7 @@ Aws::String URI::GetURLEncodedPathRFC3986() const
243243 ss << ' /' << urlEncodeSegment (segment, m_useRfcEncoding);
244244 }
245245
246- if (m_pathSegments.empty () || m_pathHasTrailingSlash)
246+ if (m_pathSegments.empty () || ( m_pathHasTrailingSlash && !s_preservePathSeparators) )
247247 {
248248 ss << ' /' ;
249249 }
You can’t perform that action at this time.
0 commit comments