Permalink
Browse files

Backport r100740

svn path=/branches/mono-1-9/mcs/; revision=100741
  • Loading branch information...
1 parent e5b5360 commit 59c864c22a7ba865e3d641048f143eef3d78e3bb @kornelpal kornelpal committed Apr 15, 2008
Showing with 5 additions and 2 deletions.
  1. +5 −0 mcs/class/System.Web/System.Web/ChangeLog
  2. +0 −2 mcs/class/System.Web/System.Web/HttpRuntime.cs
@@ -1,3 +1,8 @@
+2008-04-15 Kornél Pál <kornelpal@gmail.com>
+
+ * HttpRuntime.cs: Don't add Date header for error pages either. Fixes bug
+ #363404.
+
2008-04-02 Marek Habersack <mhabersack@novell.com>
* HttpRequest.cs: make sure QueryStringRaw is always returned with
@@ -611,7 +611,6 @@ static void FinishWithException (HttpWorkerRequest wr, HttpException e)
int code = e.GetHttpCode ();
wr.SendStatus (code, HttpWorkerRequest.GetStatusDescription (code));
wr.SendUnknownResponseHeader ("Connection", "close");
- wr.SendUnknownResponseHeader ("Date", DateTime.Now.ToUniversalTime ().ToString ("r"));
Encoding enc = Encoding.ASCII;
wr.SendUnknownResponseHeader ("Content-Type", "text/html; charset=" + enc.WebName);
string msg = e.GetHtmlErrorMessage ();
@@ -631,7 +630,6 @@ static internal void FinishUnavailable (HttpWorkerRequest wr)
{
wr.SendStatus (503, "Service unavailable");
wr.SendUnknownResponseHeader ("Connection", "close");
- wr.SendUnknownResponseHeader ("Date", DateTime.Now.ToUniversalTime ().ToString ("r"));
Encoding enc = Encoding.ASCII;
wr.SendUnknownResponseHeader ("Content-Type", "text/html; charset=" + enc.WebName);
byte [] contentBytes = enc.GetBytes (content503);

0 comments on commit 59c864c

Please sign in to comment.