Permalink
Browse files

fix some commas in HTTP.cpp that should be semicolons

  • Loading branch information...
jacob1 committed Aug 2, 2016
1 parent 07e06ef commit 9a855cc8cb01e2db3691f4c40b26457da31fdc47
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/client/HTTP.cpp
@@ -1022,7 +1022,7 @@ std::string GetMultipartMessage(std::map<std::string, std::string> parts, std::s
// add the header needed to make POSTS work
void http_add_multipart_header(void *ctx, std::string boundary)
{
std::string header = "multipart/form-data, boundary=" + boundary;
std::string header = "multipart/form-data; boundary=" + boundary;
http_async_add_header(ctx, "Content-type", header.c_str());
}
@@ -1192,7 +1192,7 @@ char *http_multipart_post(const char *uri, const char *const *names, const char
if (data)
{
tmp = (char *)malloc(32+strlen((char *)boundary));
sprintf(tmp, "multipart/form-data, boundary=%s", boundary);
sprintf(tmp, "multipart/form-data; boundary=%s", boundary);
http_async_add_header(ctx, "Content-type", tmp);
free(tmp);
free(data);
@@ -1380,7 +1380,7 @@ void *http_multipart_post_async(const char *uri, const char *const *names, const
if (data)
{
tmp = (char *)malloc(32+strlen((char *)boundary));
sprintf(tmp, "multipart/form-data, boundary=%s", boundary);
sprintf(tmp, "multipart/form-data; boundary=%s", boundary);
http_async_add_header(ctx, "Content-type", tmp);
free(tmp);
free(data);

0 comments on commit 9a855cc

Please sign in to comment.