Skip to content

Commit 85b476d

Browse files
committed
(sendResponse)
1 parent 75eb02a commit 85b476d

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

XmlConnector.ashx.cs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public void ProcessRequest(HttpContext context)
5353
#region "Initialize"
5454

5555
var strOut = "** No Action **";
56+
var sendResponse = true;
5657

5758
var paramCmd = Utils.RequestQueryStringParam(context, "cmd");
5859
var itemId = Utils.RequestQueryStringParam(context, "itemid");
@@ -164,6 +165,7 @@ public void ProcessRequest(HttpContext context)
164165
break;
165166
case "docdownload":
166167
strOut = DownloadSystemFile(paramCmd, context);
168+
sendResponse = false;
167169
break;
168170
case "printproduct":
169171
break;
@@ -246,11 +248,14 @@ public void ProcessRequest(HttpContext context)
246248

247249
#region "return results"
248250

249-
//send back xml as plain text
250-
context.Response.Clear();
251-
context.Response.ContentType = "text/plain";
252-
context.Response.Write(strOut);
253-
context.Response.End();
251+
if (sendResponse)
252+
{
253+
//send back xml as plain text
254+
context.Response.Clear();
255+
context.Response.ContentType = "text/plain";
256+
context.Response.Write(strOut);
257+
context.Response.End();
258+
}
254259

255260
#endregion
256261

0 commit comments

Comments
 (0)