From 92f5f4c8f071ec3bd7ee2ecbde9176e92f28d50e Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Thu, 26 Nov 2020 23:13:18 +0100 Subject: [PATCH] Content side changes for HttpListener. --- Content.Server/Content.Server.csproj | 1 - Content.Server/MoMMILink.cs | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Content.Server/Content.Server.csproj b/Content.Server/Content.Server.csproj index 8923cb0774..ea79f33285 100644 --- a/Content.Server/Content.Server.csproj +++ b/Content.Server/Content.Server.csproj @@ -14,7 +14,6 @@ - diff --git a/Content.Server/MoMMILink.cs b/Content.Server/MoMMILink.cs index 692dcd59c5..bc7b4aaf01 100644 --- a/Content.Server/MoMMILink.cs +++ b/Content.Server/MoMMILink.cs @@ -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; }