mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-30 01:38:52 +00:00
Set request content type appropriately
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user