mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Fixed last commit.
This commit is contained in:
@@ -434,7 +434,11 @@ namespace RuriLib
|
||||
var replacedKey = key.Replace("-", "").ToLower(); // Used to compare with the HttpHeader enum
|
||||
var val = ReplaceValues(header.Value, data);
|
||||
|
||||
if (replacedKey == "contenttype") content.ContentType = val; // If it's somewhat needed to define Content-Type in e.g. a GET request
|
||||
if (replacedKey == "contenttype") // If it's somewhat needed to define Content-Type in e.g. a GET request
|
||||
{
|
||||
content = new StringContent("");
|
||||
content.ContentType = val;
|
||||
}
|
||||
else if (fixedNames.Contains(replacedKey)) request.AddHeader((HttpHeader)Enum.Parse(typeof(HttpHeader), replacedKey, true), val);
|
||||
else request.AddHeader(key, val);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user