jellyfin/Jellyfin.Api
Szymon Acedański 136136dea9 Fix incorrect responses for HEAD /audio/<id>/stream
Without this fix my Samsung Soundbar (HW-Q80R) fails to play using DLNA
and returns "Error: Resource not found (716)" instead.

I had a look on tcpdump network logs between Jellyfin and the soundbar
and noticed that the device performs a HEAD request for the media before
responding to the DLNA UPNP control request from Jellyfin (or BubbleUPNP
Android App).

Jellyfin retuns 204 No Content response, which is unusual.  Common web
servers generally return 200 OK if the GET would return content, and
this is not-very-clearly suggested [in HTTP
spec](https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.2.1)

The other patch is to ensure, that invalid Content-Length: 0 is not
returned with the HEAD response in the streaming case.

I think in both cases we still don't return the same headers with HEAD
as with GET (e.g. Content-Length or Accept-Ranges), but at least we
don't return anything misleading.
2021-03-24 20:43:54 +01:00
..
Attributes Add image file accept to openapi 2021-02-10 16:12:52 -07:00
Auth Minor code style related change 2020-12-07 16:15:56 +01:00
Constants Update authorization policies for SyncPlay 2020-12-07 10:33:15 +01:00
Controllers Apply review suggestions 2021-03-20 01:28:14 +01:00
Extensions Minor improvements 2021-02-21 02:49:52 +01:00
Helpers Fix incorrect responses for HEAD /audio/<id>/stream 2021-03-24 20:43:54 +01:00
ModelBinders Change log level for converters 2021-01-01 09:34:39 -07:00
Models Fix third part integration 2021-03-11 22:45:58 -07:00
WebSocketListeners Remove circular dependency between websocket listeners and manager 2020-11-28 11:21:53 +01:00
BaseJellyfinApiController.cs Move json profiles to constant strings. 2020-09-03 12:15:24 -06:00
Jellyfin.Api.csproj FxCop -> Net Analyzers (part 1) 2021-03-09 03:04:47 +01:00