diff options
Diffstat (limited to 'data/net_1_1/DefaultWsdlHelpGenerator.aspx')
-rw-r--r-- | data/net_1_1/DefaultWsdlHelpGenerator.aspx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/data/net_1_1/DefaultWsdlHelpGenerator.aspx b/data/net_1_1/DefaultWsdlHelpGenerator.aspx index f0f74e682bc..15f15a25f89 100644 --- a/data/net_1_1/DefaultWsdlHelpGenerator.aspx +++ b/data/net_1_1/DefaultWsdlHelpGenerator.aspx @@ -337,7 +337,9 @@ string GetTestResult () try { - WebRequest req = WebRequest.Create (location + "/" + CurrentOperationName + "?" + qs); + string url = location + "/" + CurrentOperationName; + Uri uri = new Uri (url); + WebRequest req = WebRequest.Create (url + "?" + qs); HttpCookieCollection cookies = Request.Cookies; int last = cookies.Count; if (last > 0) { @@ -345,7 +347,7 @@ string GetTestResult () for (int i = 0; i < last; i++) { HttpCookie hcookie = cookies [i]; Cookie cookie = new Cookie (hcookie.Name, hcookie.Value, hcookie.Path, hcookie.Domain); - container.Add (cookie); + container.Add (uri, cookie); } ((HttpWebRequest) req).CookieContainer = container; } |