Skip to content

Commit

Permalink
Remove Connection: Close for REST api
Browse files Browse the repository at this point in the history
  • Loading branch information
sgkoishi authored Mar 8, 2023
1 parent 510d696 commit 10aca85
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion TShockAPI/Rest/Rest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,6 @@ protected virtual void OnRequest(object sender, RequestEventArgs e)
{
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);
Expand Down

0 comments on commit 10aca85

Please sign in to comment.