Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cvium committed Mar 6, 2019
1 parent 446f9bf commit 394d23a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Emby.Server.Implementations/WebSockets/WebSocketManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private async Task ProcessMessage(byte[] messageBytes, TaskCompletionSource<bool
? 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 objects
if (!message.StartsWith("{", StringComparison.OrdinalIgnoreCase))
{
_logger.LogDebug("Received web socket message that is not a json structure: {Message}", message);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ private async Task<object> GetStreamResult(StreamRequest request, StreamState st

var contentType = state.GetMimeType(outputPath);

// TODO: The isHeadRequest is only here because ServiceStack will add Content-Length=0 to the response
// Headers only
if (isHeadRequest)
{
Expand Down

0 comments on commit 394d23a

Please sign in to comment.