Use GetAsync to get headers for stream type check

pull/12775/head
joshjryan 7 months ago
parent b5d89a67e8
commit b6e37d2d74

@ -102,9 +102,8 @@ namespace Jellyfin.LiveTv.TunerHosts
{
try
{
using var message = new HttpRequestMessage(HttpMethod.Head, mediaSource.Path);
using var response = await _httpClientFactory.CreateClient(NamedClient.Default)
.SendAsync(message, cancellationToken)
.GetAsync(mediaSource.Path, HttpCompletionOption.ResponseHeadersRead, cancellationToken)
.ConfigureAwait(false);
if (response.IsSuccessStatusCode)

Loading…
Cancel
Save