* HttpResponse.cs (ContentEncoding): Throw
authorJackson Harper <jackson@novell.com>
Mon, 3 Nov 2003 22:45:20 +0000 (22:45 -0000)
committerJackson Harper <jackson@novell.com>
Mon, 3 Nov 2003 22:45:20 +0000 (22:45 -0000)
ArgumentNullException. Patch by Yaron Shkop.

svn path=/trunk/mcs/; revision=19601

mcs/class/System.Web/System.Web/ChangeLog
mcs/class/System.Web/System.Web/HttpResponse.cs

index bc532dd3905a240f60a57e53fff1398acb2d4ca1..93aca5c30c47d6360b470d2316bb6971219b79a6 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-03 Jackson Harper <jackson@ximian.com>
+
+       * HttpResponse.cs (ContentEncoding): Throw
+       ArgumentNullException. Patch by Yaron Shkop.
+       
 2003-10-30  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
 
        * HttpMultipartContentParser.cs : Quick fix for cygwin build. 
index 525477527869728111d00c10acdc2208a0724777..e04a56ea46a7f305c60411700c183c799af03c48 100644 (file)
@@ -368,7 +368,7 @@ namespace System.Web
 
                        set {
                                if (value == null)
-                                       throw new ArgumentException ("Can't set a null as encoding");
+                                       throw new ArgumentNullException ("Can't set a null as encoding");
 
                                _ContentEncoding = value;