+2002-07-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * HttpResponse.cs: quick&dirty hack to make redirection work. Should
+ be out of there once we have SimpleWorkerRequest.
+
2002-07-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* HttpUtility.cs: little typo, big headache.
Redirect(url, true);\r
}\r
\r
+ //FIXME: [1] this is an ugly hack to make it work until we have SimpleWorkerRequest!\r
+ private string redirectLocation;\r
+ public string RedirectLocation\r
+ {\r
+ get {\r
+ return redirectLocation;\r
+ }\r
+ }\r
public void Redirect(string url, bool endResponse) {\r
if (_bHeadersSent) {\r
throw new System.Web.HttpException("Headers has been sent to the client");\r
Clear();\r
\r
StatusCode = 302;\r
- AppendHeader(HttpWorkerRequest.HeaderLocation, url);\r
+ redirectLocation = url;\r
+ //[1]AppendHeader(HttpWorkerRequest.HeaderLocation, url);\r
\r
// Text for browsers that can't handle location header\r
Write("<html><head><title>Object moved</title></head><body>\r\n");\r
Write("<h2>Object moved to <a href='" + url + "'>here</a></h2>\r\n");\r
Write("</body><html>\r\n");\r
\r
- if (endResponse) {\r
+ /* [1]\r
+ if (endResponse) {\r
End();\r
}\r
+ */\r
}\r
\r
public void Write(char ch) {\r