Merge pull request #2925 from sgkoishi/patch-1

Remove Connection: Close for REST api
This commit is contained in:
Lucas Nicodemus 2025-01-26 01:08:50 +09:00 committed by GitHub
commit c9678fac26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 1 deletions

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);

View file

@ -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)