Эх сурвалжийг харах

fix(ratelimit): 修复返回中文乱码问题

Ady Ven 2 жил өмнө
parent
commit
71ab702f79

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

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