From 47024872aa1845484534fcc5c9a058a510365ec6 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 22 Mar 2017 10:47:06 +0100 Subject: [PATCH] binary post bug for Lua scripts fixed --- LoadImpact_Script_Export/LI_Export.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/LoadImpact_Script_Export/LI_Export.cs b/LoadImpact_Script_Export/LI_Export.cs index 6a75d80..792bf6f 100644 --- a/LoadImpact_Script_Export/LI_Export.cs +++ b/LoadImpact_Script_Export/LI_Export.cs @@ -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++;