From 68102eb6d49b13a7cd002d9053fb1db62e74c955 Mon Sep 17 00:00:00 2001 From: ruri Date: Tue, 28 May 2019 13:13:09 +0200 Subject: [PATCH] Now disregarding Content-Type headers in the custom headers box since it was breaking everything. --- RuriLib/Blocks/BlockRequest.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/RuriLib/Blocks/BlockRequest.cs b/RuriLib/Blocks/BlockRequest.cs index 4fea172..644581c 100644 --- a/RuriLib/Blocks/BlockRequest.cs +++ b/RuriLib/Blocks/BlockRequest.cs @@ -448,11 +448,7 @@ namespace RuriLib var replacedKey = key.Replace("-", "").ToLower(); // Used to compare with the HttpHeader enum var val = ReplaceValues(header.Value, data); - if (replacedKey == "contenttype") // If it's somewhat needed to define Content-Type in e.g. a GET request - { - content = new StringContent(""); - content.ContentType = val; - } + if (replacedKey == "contenttype") { } // Disregard additional Content-Type headers else if (fixedNames.Contains(replacedKey)) request.AddHeader((HttpHeader)Enum.Parse(typeof(HttpHeader), replacedKey, true), val); else request.AddHeader(key, val);