Set request content type appropriately

This commit is contained in:
Haacked
2013-10-06 21:50:00 -07:00
parent 390f737ce3
commit be7a14539e
6 changed files with 117 additions and 37 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ namespace Octokit.Http
var body = request.Body as string;
if (body != null)
{
requestMessage.Content = new StringContent(body, Encoding.UTF8);
requestMessage.Content = new StringContent(body, Encoding.UTF8, request.ContentType);
}
var bodyStream = request.Body as System.IO.Stream;
if (bodyStream != null)