+2008-06-27 Robert Jordan <robertj@gmx.net>
+
+ * TimeUtil.cs (ToUtcTimeString): convert using the invariant
+ culture. Fixes bug #404083. Contributed by
+ Hubert FONGARNAND <informatique.internet@fiducial.fr>.
+
2008-06-16 Marek Habersack <mhabersack@novell.com>
* UrlUtils.cs: optimize string usage (do not compare against "").
//
using System;
+using System.Globalization;
namespace System.Web.Util {
internal static string ToUtcTimeString (DateTime dt)
{
- return dt.ToUniversalTime ().ToString ("ddd, d MMM yyyy HH:mm:ss ") + "GMT";
+ return dt.ToUniversalTime ().ToString ("ddd, d MMM yyyy HH:mm:ss ",
+ CultureInfo.InvariantCulture) + "GMT";
}
}
}
+2008-06-27 Robert Jordan <robertj@gmx.net>
+
+ * HttpCachePolicy.cs: map default HttpCacheability to
+ "Cache-control: private" for MS.NET compatibility.
+ Fixes bug #404083. Contributed by
+ Hubert FONGARNAND <informatique.internet@fiducial.fr>.
+
2008-06-21 Robert Jordan <robertj@gmx.net>
* HttpRuntime.cs (.cctor): Workaround for bug #402263.
cc = "public";
break;
- case HttpCacheability.Private:
- case HttpCacheability.ServerAndPrivate:
- cc = "private";
- break;
-
case HttpCacheability.NoCache:
case HttpCacheability.ServerAndNoCache:
- default:
noCache = true;
cc = "no-cache";
break;
+
+ case HttpCacheability.Private:
+ case HttpCacheability.ServerAndPrivate:
+ default:
+ cc = "private";
+ break;
}
if (noCache) {