浏览代码

Update Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs

Co-Authored-By: Claus Vium <cvium@users.noreply.github.com>
Bond-009 5 年之前
父节点
当前提交
84c136b1f2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs

+ 1 - 1
Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs

@@ -122,7 +122,7 @@ namespace Emby.Server.Implementations.SocketSharp
                 return specifiedContentType;
             }
 
-            const string ServerDefaultContentType = "application/json";
+            const string ServerDefaultContentType = MediaTypeNames.Application.Json;
 
             var acceptContentTypes = httpReq.Headers.GetCommaSeparatedValues(HeaderNames.Accept);
             string defaultContentType = null;