From 31fd2b23dac7a82bcbba9452da0ef0cbf8ad732c Mon Sep 17 00:00:00 2001 From: Anton Ivashkin Date: Tue, 3 Nov 2020 19:44:04 +0300 Subject: [PATCH] Make http uri with non-empty path http://domain.com/?delete instead of http://domain.com?delete Reason: uri is correct (https://tools.ietf.org/html/rfc7230#section-2.7.3), but nginx did not accept it correctly (https://github.com/nginx/nginx/blob/master/src/http/ngx_http_parse.c#L438) --- aws-cpp-sdk-core/source/http/URI.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/aws-cpp-sdk-core/source/http/URI.cpp b/aws-cpp-sdk-core/source/http/URI.cpp index daadd4e0cda8..51761b033e61 100644 --- a/aws-cpp-sdk-core/source/http/URI.cpp +++ b/aws-cpp-sdk-core/source/http/URI.cpp @@ -357,10 +357,7 @@ Aws::String URI::GetURIString(bool includeQueryString) const ss << ":" << m_port; } - if(m_path != "/") - { - ss << URLEncodePathRFC3986(m_path); - } + ss << URLEncodePathRFC3986(m_path); if(includeQueryString) {