소스 검색

minor fix to accept languages

Scrublord1336 6 년 전
부모
커밋
1c665ec94f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/XUnity.AutoTranslator.Plugin.Core/Web/GoogleTranslateEndpoint.cs

+ 1 - 1
src/XUnity.AutoTranslator.Plugin.Core/Web/GoogleTranslateEndpoint.cs

@@ -26,7 +26,7 @@ namespace XUnity.AutoTranslator.Plugin.Core.Web
       private static readonly System.Random RandomNumbers = new System.Random();
 
       private static readonly string[] Accepts = new string[] { null, "*/*", "application/json" };
-      private static readonly string[] AcceptLanguages = new string[] { null, "en-US,en;q=0.9", "en-US,en", "en-US", "en" };
+      private static readonly string[] AcceptLanguages = new string[] { null, "en-US,en;q=0.9", "en-US", "en" };
       private static readonly string[] Referers = new string[] { null, "https://translate.google.com/" };
       private static readonly string[] AcceptCharsets = new string[] { null, Encoding.UTF8.WebName };