Author: eyala
Date: 2007-02-18 06:50:33 -0500 (Sun, 18 Feb 2007)
New Revision: 73070

Modified:
   trunk/mcs/class/System.Web/System.Web/HttpRequest.cs
   trunk/mcs/class/System.Web/System.Web/HttpRequest.jvm.cs
Log:
Fix failures when running tests in J2EE mode

Modified: trunk/mcs/class/System.Web/System.Web/HttpRequest.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web/HttpRequest.cs        2007-02-18 
11:43:52 UTC (rev 73069)
+++ trunk/mcs/class/System.Web/System.Web/HttpRequest.cs        2007-02-18 
11:50:33 UTC (rev 73070)
@@ -447,7 +447,6 @@
                        EndSubStream (input);
                }
 
-#if !TARGET_J2EE
                //
                // Adds the key/value to the form, and sets the argumets to 
empty
                //
@@ -463,7 +462,11 @@
                //
                // Loads the form data from on a 
application/x-www-form-urlencoded post
                // 
+#if TARGET_J2EE
+               void RawLoadWwwForm ()
+#else
                void LoadWwwForm ()
+#endif
                {
                        Stream input = GetSubStream (InputStream);
                        StreamReader s = new StreamReader (input, 
ContentEncoding);
@@ -496,7 +499,6 @@
 
                        EndSubStream (input);
                }
-#endif
 
                bool IsContentType (string ct, bool starts_with)
                {

Modified: trunk/mcs/class/System.Web/System.Web/HttpRequest.jvm.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web/HttpRequest.jvm.cs    2007-02-18 
11:43:52 UTC (rev 73069)
+++ trunk/mcs/class/System.Web/System.Web/HttpRequest.jvm.cs    2007-02-18 
11:50:33 UTC (rev 73070)
@@ -57,8 +57,10 @@
                void LoadWwwForm ()
                {
                        HttpServletRequest servletReq = context.ServletRequest;
-                       if (servletReq == null)
+                       if (servletReq == null) {
+                               RawLoadWwwForm ();
                                return;
+                       }
 
                        servletReq.setCharacterEncoding 
(ContentEncoding.WebName);
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to