The Free Software Media System - Server Backend & API
Review comments
Claus Vium394d23a73a53
diff --git a/Emby.Server.Implementations/WebSockets/WebSocketManager.cs b/Emby.Server.Implementations/WebSockets/WebSocketManager.csindex 5db2c8da73..04c73ecea7 100644--- a/Emby.Server.Implementations/WebSockets/WebSocketManager.cs+++ b/Emby.Server.Implementations/WebSockets/WebSocketManager.cs@@ -65,7 +65,7 @@ namespace Emby.Server.Implementations.WebSockets? Encoding.UTF8.GetString(messageBytes, 0, messageBytes.Length): Encoding.ASCII.GetString(messageBytes, 0, messageBytes.Length);- // All messages are expected to be json+ // All messages are expected to be valid JSON objectsif (!message.StartsWith("{", StringComparison.OrdinalIgnoreCase)){_logger.LogDebug("Received web socket message that is not a json structure: {Message}", message);diff --git a/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs b/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.csindex fc81e532d8..399ac2be09 100644--- a/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs+++ b/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs@@ -362,6 +362,7 @@ namespace MediaBrowser.Api.Playback.Progressivevar contentType = state.GetMimeType(outputPath);+ // TODO: The isHeadRequest is only here because ServiceStack will add Content-Length=0 to the response// Headers onlyif (isHeadRequest){