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.
This commit is contained in:
Tamás Bálint Misius 2019-03-07 15:01:25 +01:00 committed by jacob1
parent 30c7f6ded7
commit d958adf487

View File

@ -998,7 +998,7 @@ ByteString GetMultipartMessage(std::map<ByteString, ByteString> 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
{