From d958adf487d9d02ec7c719cb96149081dbd720ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Thu, 7 Mar 2019 15:01:25 +0100 Subject: [PATCH] Fix filename field in multipart content-disposition headers All the multipart stuff is going to be handled by curl so this split-by-':' code is going to move into Request.cpp later. --- src/client/http/HTTP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/http/HTTP.cpp b/src/client/http/HTTP.cpp index 15fa2a5f4..95a0734a7 100644 --- a/src/client/http/HTTP.cpp +++ b/src/client/http/HTTP.cpp @@ -998,7 +998,7 @@ ByteString GetMultipartMessage(std::map parts, ByteStrin { // used to upload files (save data) data << "content-disposition: form-data; name=\"" << split.Before() << "\""; - data << "filename=\"" << split.After() << "\""; + data << "; filename=\"" << split.After() << "\""; } else {