Update XxlRestfulServiceHandler.cs

https://github.com/xuanye/DotXxlJob/issues/21
pull/22/head
FatuityCookie 4 years ago committed by GitHub
parent e7cd2bcd9f
commit 040ec60e8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/DotXxlJob.Core/XxlRestfulServiceHandler.cs

@ -97,7 +97,7 @@ namespace DotXxlJob.Core
ret = ReturnT.Failed($"method {method} is not impl");
}
response.ContentType = "application/json;charset=utf-8";
await response.WriteAsync(JsonConvert.SerializeObject(ret));
await response.WriteAsync(JsonConvert.SerializeObject(ret, new JsonSerializerSettings() { StringEscapeHandling = StringEscapeHandling.EscapeNonAscii }));
}
private async Task<string> CollectBody(Stream body)
{

Loading…
Cancel
Save