mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-27 04:16:47 +00:00
#22 - Support Http Head requests
This commit is contained in:
parent
ff55da9029
commit
b94417b845
1 changed files with 6 additions and 1 deletions
|
|
@ -270,7 +270,12 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
|||
}
|
||||
|
||||
httpListenerResponse.ContentLength64 = stream.Length;
|
||||
return new StreamWriter(stream, Logger);
|
||||
return headersOnly ? null : new StreamWriter(stream, Logger);
|
||||
}
|
||||
|
||||
if (headersOnly)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
string content;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue