Explorar el Código

Merge pull request #32 from bulog/master

fix(ratelimit): 修复返回中文乱码问题
zhontai hace 2 años
padre
commit
1c434fa864
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/hosts/ZhonTai.Host/Configs/ratelimitconfig.json

+ 2 - 2
src/hosts/ZhonTai.Host/Configs/ratelimitconfig.json

@@ -14,7 +14,7 @@
     "HttpStatusCode": 429,
     "QuotaExceededResponse": {
       "Content": "{{\"code\":429,\"msg\":\"访问过于频繁!\"}}",
-      "ContentType": "application/json",
+      "ContentType": "application/json; charset=utf-8",
       "StatusCode": 429
     },
     "GeneralRules": [
@@ -30,4 +30,4 @@
       }
     ]
   }
-}
+}