2003-09-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Sun, 21 Sep 2003 03:37:27 +0000 (03:37 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Sun, 21 Sep 2003 03:37:27 +0000 (03:37 -0000)
* System.Web/HttpRequest.cs: small fix needed when reading big POST
data.
* System.Web.Compilation/CachingCompiler.cs: nothing interesting.
* System.Web.UI/SimpleWebHandlerParser.cs: add the ashx/asmx file
itself to the dependencies so that it's recompiled when changed.

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

mcs/class/System.Web/System.Web.Compilation/CachingCompiler.cs
mcs/class/System.Web/System.Web.UI/ChangeLog
mcs/class/System.Web/System.Web.UI/SimpleWebHandlerParser.cs
mcs/class/System.Web/System.Web/ChangeLog
mcs/class/System.Web/System.Web/HttpRequest.cs

index c0e07151fd17189466698001d5085714197fee26..606ab7e34a1fbd55e7ed09d6f1161a8ee08b11cd 100644 (file)
@@ -141,10 +141,11 @@ namespace System.Web.Compilation
                                if (item != null)
                                        return item.Result;
 
-                               CompilerParameters options = GetOptions (compiler.Parser.Assemblies);
-                               options.IncludeDebugInformation = compiler.Parser.Debug;
+                               SimpleWebHandlerParser parser = compiler.Parser;
+                               CompilerParameters options = GetOptions (parser.Assemblies);
+                               options.IncludeDebugInformation = parser.Debug;
                                results = compiler.Compiler.CompileAssemblyFromFile (options, file);
-                               cache [key] = new CompilationCacheItem (results, compiler.Parser.Dependencies);
+                               cache [key] = new CompilationCacheItem (results, parser.Dependencies);
                        }
 
                        return results;
index 4dbabe60a7d99dbc6de7bd4a8e85ad6c9011c56a..b39274fe7d12a8802b8ea46a11405fa2875dbeef 100644 (file)
@@ -1,3 +1,8 @@
+2003-09-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * SimpleWebHandlerParser.cs: add the ashx/asmx file itself to the
+       dependencies so that it's recompiled when changed.
+
 2003-09-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * LosFormatter.cs: fixed Deserialize for empty viewstate.
index 6df72fa165f977ffd83845834521b22bada5dbaf..a4032638f3b2fbc5a1e00675b65850f09e2ebf07 100644 (file)
@@ -42,6 +42,7 @@ namespace System.Web.UI
                        this.context = context;
                        this.vPath = virtualPath;
                        this.physPath = physicalPath;
+                       AddDependency (physicalPath);
 
                        assemblies = new ArrayList ();
                        assemblies.Add ("System.dll");
index 299ab763a3bb8add058848e1c1a45af9d2af532f..66cf075fd561f16b589c269e54a7b69676b6bf5a 100644 (file)
@@ -1,3 +1,7 @@
+2003-09-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpRequest.cs: small fix needed when reading big POST data.
+
 2003-09-04  Lluis Sanchez Gual <lluis@ximian.com>
 
        * HttpRequest.cs: Url property: use GetLocalAddress() to get the address
index d64ced0ce38b0141545938e3897d37e820e1031b..8f9e0c1a588dcfbf0028aea30c9b07d248337b5e 100644 (file)
@@ -268,7 +268,12 @@ namespace System.Web {
                                ms.Write (arrBuffer, 0, read);\r
                        }\r
 \r
-                       _arrRawContent = ms.GetBuffer ();\r
+                       byte [] msBuffer = ms.GetBuffer ();
+                       if (msBuffer.Length == length)
+                               _arrRawContent = msBuffer;
+                       else
+                               _arrRawContent = ms.ToArray ();
+
                        return _arrRawContent;\r
                }\r
 \r