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:
parent
30c7f6ded7
commit
d958adf487
@ -998,7 +998,7 @@ ByteString GetMultipartMessage(std::map<ByteString, ByteString> parts, ByteStrin
|
|||||||
{
|
{
|
||||||
// used to upload files (save data)
|
// used to upload files (save data)
|
||||||
data << "content-disposition: form-data; name=\"" << split.Before() << "\"";
|
data << "content-disposition: form-data; name=\"" << split.Before() << "\"";
|
||||||
data << "filename=\"" << split.After() << "\"";
|
data << "; filename=\"" << split.After() << "\"";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user