Skip to content

Commit

Permalink
bugfix for max file size error (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
GFNiko authored May 24, 2023
1 parent bc29e8c commit ea227ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Whisper.net/Ggml/WhisperGgmlDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static async Task<Stream> GetGgmlModelAsync(GgmlType type, CancellationTo
};

var request = new HttpRequestMessage(HttpMethod.Get, url);
var response = await httpClient.Value.SendAsync(request, cancellationToken);
var response = await httpClient.Value.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, cancellationToken);
response.EnsureSuccessStatusCode();

#if IOS || MACCATALYST || TVOS || ANDROID || MACOS
Expand Down

0 comments on commit ea227ac

Please sign in to comment.