mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-29 08:00:19 +01:00
Properly set Content-Type in swarm clients
This commit is contained in:
@@ -9,6 +9,7 @@ using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Net.Mime;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Tgstation.Server.Api.Models;
|
||||
@@ -869,7 +870,9 @@ namespace Tgstation.Server.Host.Swarm
|
||||
{
|
||||
if (body != null)
|
||||
request.Content = new StringContent(
|
||||
JsonConvert.SerializeObject(body, SerializerSettings));
|
||||
JsonConvert.SerializeObject(body, SerializerSettings),
|
||||
Encoding.UTF8,
|
||||
MediaTypeNames.Application.Json);
|
||||
|
||||
return request;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user