mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Fixed translation of FILECONTENT to LS.
This commit is contained in:
@@ -292,8 +292,16 @@ namespace RuriLib
|
|||||||
{
|
{
|
||||||
writer
|
writer
|
||||||
.Indent()
|
.Indent()
|
||||||
.Token($"{c.Type.ToString().ToUpper()}CONTENT")
|
.Token($"{c.Type.ToString().ToUpper()}CONTENT");
|
||||||
.Literal($"{c.Name}: {c.Value}");
|
|
||||||
|
if (c.Type == MultipartContentType.String)
|
||||||
|
{
|
||||||
|
writer.Literal($"{c.Name}: {c.Value}");
|
||||||
|
}
|
||||||
|
else if (c.Type == MultipartContentType.File)
|
||||||
|
{
|
||||||
|
writer.Literal($"{c.Name}: {c.Value}: {c.ContentType}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!writer.CheckDefault(MultipartBoundary, "MultipartBoundary"))
|
if (!writer.CheckDefault(MultipartBoundary, "MultipartBoundary"))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user