Skip to content

Commit

Permalink
Fix filename field in multipart content-disposition headers
Browse files Browse the repository at this point in the history
All the multipart stuff is going to be handled by curl so this split-by-':' code is going to move into Request.cpp later.
  • Loading branch information
LBPHacker authored and jacob1 committed Mar 8, 2019
1 parent 30c7f6d commit d958adf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/http/HTTP.cpp
Expand Up @@ -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
{
Expand Down

0 comments on commit d958adf

Please sign in to comment.