Skip to content

Commit

Permalink
prevent returning of 'Content-Type: webone/unknown-content-type' (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
atauenis committed Apr 15, 2024
1 parent 1d06d8f commit 810f4dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions HttpResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 810f4dd

Please sign in to comment.