Skip to content
Permalink
Browse files

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.
  • Loading branch information...
LBPHacker authored and jacob1 committed Mar 7, 2019
1 parent 30c7f6d commit d958adf487d9d02ec7c719cb96149081dbd720ed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/client/http/HTTP.cpp
@@ -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
{

0 comments on commit d958adf

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.