mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-01 10:25:36 +00:00
Set content type for streamed uploads.
This commit is contained in:
@@ -96,6 +96,7 @@ namespace Octokit.Internal
|
||||
if (bodyStream != null)
|
||||
{
|
||||
requestMessage.Content = new StreamContent(bodyStream);
|
||||
requestMessage.Content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue(request.ContentType);
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
|
||||
Reference in New Issue
Block a user