Skip to content

Commit bb7e080

Browse files
author
王浩锐
committed
fix(HTTP): error boundary in HTTP-Header, Content-Type
see `https://www.rfc-editor.org/rfc/rfc2046#section-5.1` Poco carries extra ''", which can cause nginx to return 'Malformed multipart message', upload fail.
1 parent 5e5e1a6 commit bb7e080

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Net/src/HTMLForm.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,8 @@ void HTMLForm::prepareSubmit(HTTPRequest& request, int options)
219219
{
220220
_boundary = MultipartWriter::createBoundary();
221221
std::string ct(_encoding);
222-
ct.append("; boundary=\"");
222+
ct.append("; boundary=");
223223
ct.append(_boundary);
224-
ct.append("\"");
225224
request.setContentType(ct);
226225
}
227226
if (request.getVersion() == HTTPMessage::HTTP_1_0)

0 commit comments

Comments
 (0)