Skip to content

Commit

Permalink
fix multi part form boundary as per issue #20
Browse files Browse the repository at this point in the history
  • Loading branch information
j6mes committed Sep 14, 2017
1 parent 9f03833 commit 4313128
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void TestContentTypeContainsBoundaryString()
[TestMethod]
public void TestContentType()
{
Assert.AreEqual("multipart/form-data, boundary=" + provider.GetBoundary(), provider.GetContentType());
Assert.AreEqual("multipart/form-data; boundary=" + provider.GetBoundary(), provider.GetContentType());
}

[TestMethod]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void AddFile(NamedFileStream file)

public override string GetContentType()
{
return string.Format("multipart/form-data, boundary={0}", boundary);
return string.Format("multipart/form-data; boundary={0}", boundary);
}

public string GetBoundary()
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ HttpLib is a free (Apache 2.0 License) web request helper for .Net that makes it

Dev build ![build status master](https://ci.appveyor.com/api/projects/status/github/j6mes/httplib)

Version 2.0.15 ![2.0.15](https://ci.appveyor.com/api/projects/status/cfxsekd76ap47fej/branch/2.0.15)
Version 2.0.15 ![2.0.16](https://ci.appveyor.com/api/projects/status/cfxsekd76ap47fej/branch/2.0.16)

## About

The library was first released in 2012 and has since had over 5500 downloads.
The library was first released in 2012 and has since had over 50,000 downloads.

#### Download

Expand All @@ -18,7 +18,7 @@ Source code is available on [GitHub](https://github.com/j6mes/httplib/ "Download

#### Latest Release:

The most recent release is **2.0.15** which supports the following features:
The most recent release is **2.0.16** which supports the following features:

* Supports most HTTP Verbs: GET / POST / PUT / DELETE and more
* Upload and download files to disk
Expand All @@ -30,6 +30,7 @@ The most recent release is **2.0.15** which supports the following features:
* Bug fix 16 - setting custom headers
* Bug fix 17 - sending request without body
* Request 18 - removed stats collection
* Bug fix 20 - multipart form boundary

Supported platforms: .Net4.0+ (WinForms, WCF, ASP.Net, Silverlight 5, Windows Phone 8.0+, Windows 8.0+).

Expand Down Expand Up @@ -122,4 +123,4 @@ If the server doesn’t reply with a content length header, the totalBytes v

Performs a HTTP DELETE on a given URL

Http.Delete("https://jthorne.co.uk/httplib").Go();
Http.Delete("https://jthorne.co.uk/httplib").Go();

0 comments on commit 4313128

Please sign in to comment.