From 810f4ddfc36dd6c97bc674d74459f1e648940bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=A2=D0=B0=D1=83=D0=B5=D0=BD=D0=B8=D1=81?= Date: Mon, 15 Apr 2024 15:06:54 +0300 Subject: [PATCH] prevent returning of 'Content-Type: webone/unknown-content-type' (#119) --- HttpResponse.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/HttpResponse.cs b/HttpResponse.cs index ae6a978..2eb58e7 100644 --- a/HttpResponse.cs +++ b/HttpResponse.cs @@ -303,6 +303,7 @@ public void SendHeaders() if (Headers["Server"] == null && Headers["Via"] == null) Headers.Add("Server", "WebOne/" + Program.Variables["WOVer"]); if (Headers["Connection"] == null) { Headers.Add("Connection", "Keep-Alive"); KeepAlive = true; } + if (Headers["Content-Type"] == "webone/unknown-content-type") Headers.Remove("Content-Type"); if (MshttpapiBackend != null) {