Merge pull request #2925 from sgkoishi/patch-1
Remove Connection: Close for REST api
This commit is contained in:
commit
c9678fac26
2 changed files with 1 additions and 1 deletions
|
|
@ -351,7 +351,6 @@ namespace Rests
|
||||||
{
|
{
|
||||||
str = string.Format("{0}({1});", jsonp, str);
|
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.ContentType = new ContentTypeHeader("application/json; charset=utf-8");
|
||||||
e.Response.Add(serverHeader);
|
e.Response.Add(serverHeader);
|
||||||
var bytes = Encoding.UTF8.GetBytes(str);
|
var bytes = Encoding.UTF8.GetBytes(str);
|
||||||
|
|
|
||||||
|
|
@ -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)
|
* Fixed `/dump-reference-data` mutate the command names. (#2943, @sgkoishi)
|
||||||
* Changed the use of `Player.active` to `TSPlayer.Active` for consistency. (@sgkoishi, #2939)
|
* Changed the use of `Player.active` to `TSPlayer.Active` for consistency. (@sgkoishi, #2939)
|
||||||
* Fix typo in config for IP bans. (@redchess64)
|
* Fix typo in config for IP bans. (@redchess64)
|
||||||
|
* Fixed unable to transfer long response body for REST API. (@sgkoishi, #2925)
|
||||||
|
|
||||||
## TShock 5.2.1
|
## TShock 5.2.1
|
||||||
* Updated `TSPlayer.GodMode`. (@AgaSpace)
|
* Updated `TSPlayer.GodMode`. (@AgaSpace)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue