Review comments
This commit is contained in:
parent
446f9bf81f
commit
394d23a73a
|
@ -65,7 +65,7 @@ namespace Emby.Server.Implementations.WebSockets
|
||||||
? Encoding.UTF8.GetString(messageBytes, 0, messageBytes.Length)
|
? Encoding.UTF8.GetString(messageBytes, 0, messageBytes.Length)
|
||||||
: Encoding.ASCII.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 objects
|
||||||
if (!message.StartsWith("{", StringComparison.OrdinalIgnoreCase))
|
if (!message.StartsWith("{", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
_logger.LogDebug("Received web socket message that is not a json structure: {Message}", message);
|
_logger.LogDebug("Received web socket message that is not a json structure: {Message}", message);
|
||||||
|
|
|
@ -362,6 +362,7 @@ namespace MediaBrowser.Api.Playback.Progressive
|
||||||
|
|
||||||
var contentType = state.GetMimeType(outputPath);
|
var contentType = state.GetMimeType(outputPath);
|
||||||
|
|
||||||
|
// TODO: The isHeadRequest is only here because ServiceStack will add Content-Length=0 to the response
|
||||||
// Headers only
|
// Headers only
|
||||||
if (isHeadRequest)
|
if (isHeadRequest)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user