diff --git a/IISMainHandler/WebContext.cs b/IISMainHandler/WebContext.cs index ba4ea91..2699d1b 100644 --- a/IISMainHandler/WebContext.cs +++ b/IISMainHandler/WebContext.cs @@ -41,8 +41,9 @@ namespace FLocal.IISHandler { public XElement exportRequestParameters() { return new XElement("get", from i in Enumerable.Range(0, this.httprequest.QueryString.Count) + where this.httprequest.QueryString.GetKey(i) != null select new XElement("param", - new XAttribute("name", this.httprequest.QueryString.GetKey(i).ToString()), + new XAttribute("name", this.httprequest.QueryString.GetKey(i)), this.httprequest.QueryString[i] ) );