Fixed Content-Type header being present on GET requests.

This commit is contained in:
ruri
2019-04-19 00:21:08 +02:00
parent 4b2622a8dd
commit 2484ad8dbd
+6 -3
View File
@@ -349,9 +349,12 @@ namespace RuriLib
var pData = string.Join(Environment.NewLine, postData
.Split(new string[] { "\\n" }, StringSplitOptions.None)
.Select(p => ReplaceValues(p, data)));
content = new StringContent(pData);
content.ContentType = cType;
data.Log(new LogEntry(string.Format("Post Data: {0}", pData), Colors.MediumTurquoise));
if (pData != "")
{
content = new StringContent(pData);
content.ContentType = cType;
data.Log(new LogEntry(string.Format("Post Data: {0}", pData), Colors.MediumTurquoise));
}
break;
case RequestType.Multipart: