Skip to content
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.

Commit

Permalink
binary post bug for Lua scripts fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael authored and Michael committed Mar 22, 2017
1 parent 7c2a3d1 commit 4702487
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions LoadImpact_Script_Export/LI_Export.cs
Original file line number Diff line number Diff line change
Expand Up @@ -451,13 +451,11 @@ private void processLuaPOST(Session oS,
// Load in-script
// Use base64-blob and convert content-type

string strCat = Path.GetDirectoryName(Path.GetFullPath(sFilename));

string strData = "bin" + iBinarySequence;

strbHead.AppendLine(strData + " = [[");
string binBase64 = Convert.ToBase64String(oS.RequestBody, Base64FormattingOptions.None);
strbHead.AppendLine();
strbHead.AppendLine(binBase64);
strbHead.AppendLine("]]");
strbBody.Append(", data = " + strData);
iBinarySequence++;
Expand Down

0 comments on commit 4702487

Please sign in to comment.