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 0ceba0f commit dd88ba7Copy full SHA for dd88ba7
modules/swagger-codegen/src/main/resources/cpprest/multipart-source.mustache
@@ -59,7 +59,7 @@ void MultipartFormData::writeTo( std::ostream& target )
59
std::shared_ptr<HttpContent> content = m_Contents[i];
60
61
// boundary
62
- target << "\r\n" << "--" << utility::conversions::to_utf8string( m_Boundary ) << "\r\n";
+ target << (i > 0 ? "\r\n" : "") << "--" << utility::conversions::to_utf8string( m_Boundary ) << "\r\n";
63
64
// headers
65
target << "Content-Disposition: " << utility::conversions::to_utf8string( content->getContentDisposition() );
0 commit comments