Skip to content

Commit 5a30669

Browse files
Merge pull request #388 from jeniya-DG/jt-remove-content-length-header
Remove manual Content-Length header from v1/v2 Utilities
2 parents 122a175 + 4cc8d43 commit 5a30669

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

Deepgram/Abstractions/v1/Utilities.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ internal static HttpContent CreateStreamPayload(Stream body)
4040
{
4141
body.Seek(0, SeekOrigin.Begin);
4242
HttpContent httpContent = new StreamContent(body);
43-
httpContent.Headers.Add("Content-Length", body.Length.ToString());
4443
return httpContent;
4544
}
4645

Deepgram/Abstractions/v2/Utilities.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ internal static HttpContent CreateStreamPayload(Stream body)
4040
{
4141
body.Seek(0, SeekOrigin.Begin);
4242
HttpContent httpContent = new StreamContent(body);
43-
httpContent.Headers.Add("Content-Length", body.Length.ToString());
4443
return httpContent;
4544
}
4645

0 commit comments

Comments
 (0)