Skip to content

Commit

Permalink
fix: Fixed headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Nov 2, 2024
1 parent 6cd875b commit 604fce8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions src/libs/Hedra/Generated/Hedra.AudioClient.UploadAudio.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,7 @@ partial void ProcessUploadAudioResponseContent(
name: "content-length");
}
__httpRequestContent.Add(
content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty<byte>())
{
Headers =
{
ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"),
},
},
content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty<byte>()),
name: "file",
fileName: request.Filename ?? string.Empty);
__httpRequest.Content = __httpRequestContent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,7 @@ partial void ProcessUploadImageResponseContent(
name: "content-length");
}
__httpRequestContent.Add(
content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty<byte>())
{
Headers =
{
ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"),
},
},
content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty<byte>()),
name: "file",
fileName: request.Filename ?? string.Empty);
__httpRequest.Content = __httpRequestContent;
Expand Down

0 comments on commit 604fce8

Please sign in to comment.