Remove Connection: Close for REST api

fix #2923
This commit is contained in:
Stargazing Koishi 2023-03-07 18:39:38 -08:00 committed by GitHub
parent 510d696f16
commit 10aca8573d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -351,7 +351,6 @@ namespace Rests
{
str = string.Format("{0}({1});", jsonp, str);
}
e.Response.Connection.Type = ConnectionType.Close;
e.Response.ContentType = new ContentTypeHeader("application/json; charset=utf-8");
e.Response.Add(serverHeader);
var bytes = Encoding.UTF8.GetBytes(str);