diff --git a/TShockAPI/Rest/Rest.cs b/TShockAPI/Rest/Rest.cs index 58cc23d8f..a6e681e2a 100644 --- a/TShockAPI/Rest/Rest.cs +++ b/TShockAPI/Rest/Rest.cs @@ -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); diff --git a/docs/changelog.md b/docs/changelog.md index c23ac9cc1..e9174cbb8 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -81,6 +81,7 @@ Use past tense when adding new entries; sign your name off when you add or chang * Fixed `/dump-reference-data` mutate the command names. (#2943, @sgkoishi) * Changed the use of `Player.active` to `TSPlayer.Active` for consistency. (@sgkoishi, #2939) * Fix typo in config for IP bans. (@redchess64) +* Fixed unable to transfer long response body for REST API. (@sgkoishi, #2925) ## TShock 5.2.1 * Updated `TSPlayer.GodMode`. (@AgaSpace)