8000 Update LibGit2Sharp/Core/ManagedHttpSmartSubtransport.cs · wtf3505-git/libgit2sharp@8d83f06 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d83f06

Browse files
bordingdallmair
andauthored
Update LibGit2Sharp/Core/ManagedHttpSmartSubtransport.cs
Co-Authored-By: dallmair <dallmair@users.noreply.github.com>
1 parent e034243 commit 8d83f06

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

LibGit2Sharp/Core/ManagedHttpSmartSubtransport.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,7 @@ private HttpResponseMessage GetResponseWithRedirects()
183183

184184
if (IsPost && postBuffer.Length > 0)
185185
{
186-
var bufferDup = new MemoryStream(postBuffer.GetBuffer());
187-
bufferDup.Seek(0, SeekOrigin.Begin);
186+
var bufferDup = new MemoryStream(postBuffer.GetBuffer(), 0, (int) postBuffer.Length);
188187

189188
request.Content = new StreamContent(bufferDup);
190189
request.Content.Headers.Add("Content-Type", ContentType);

0 commit comments

Comments
 (0)
0