Content side changes for HttpListener.

This commit is contained in:
Pieter-Jan Briers
2020-11-26 23:13:18 +01:00
parent 2585498699
commit 92f5f4c8f0
2 changed files with 2 additions and 4 deletions

View File

@@ -6,7 +6,6 @@ using System.Threading.Tasks;
using Content.Server.Interfaces;
using Content.Server.Interfaces.Chat;
using Content.Shared;
using Microsoft.AspNetCore.Http;
using Newtonsoft.Json;
using Robust.Server.Interfaces.ServerStatus;
using Robust.Server.ServerStatus;
@@ -74,9 +73,9 @@ namespace Content.Server
}
}
private bool _handleChatPost(HttpMethod method, HttpRequest request, HttpResponse response)
private bool _handleChatPost(HttpMethod method, HttpListenerRequest request, HttpListenerResponse response)
{
if (method != HttpMethod.Post || request.Path != "/ooc")
if (method != HttpMethod.Post || request.Url!.AbsolutePath != "/ooc")
{
return false;
}