Merge pull request #439 from mono-soc-2012/garyb/iconfix
[mono.git] / mcs / class / System.Net.Http / System.Net.Http / HttpContent.cs
index 84d65a637e023e839e96603f65348e870eb85b5e..ad068a598d41e04b27f727d85cfaf8d70aeaf29b 100644 (file)
@@ -37,9 +37,9 @@ namespace System.Net.Http
        {
                sealed class FixedMemoryStream : MemoryStream
                {
-                       readonly int maxSize;
+                       readonly long maxSize;
                        
-                       public FixedMemoryStream (int maxSize)
+                       public FixedMemoryStream (long maxSize)
                                : base ()
                        {
                                this.maxSize = maxSize;
@@ -94,7 +94,7 @@ namespace System.Net.Http
                        return buffer;
                }
                
-               static FixedMemoryStream CreateFixedMemoryStream (int maxBufferSize)
+               static FixedMemoryStream CreateFixedMemoryStream (long maxBufferSize)
                {
                        return new FixedMemoryStream (maxBufferSize);
                }
@@ -116,10 +116,10 @@ namespace System.Net.Http
 
                public Task LoadIntoBufferAsync ()
                {
-                       return LoadIntoBufferAsync (0x2000);
+                       return LoadIntoBufferAsync (65536);
                }
 
-               public async Task LoadIntoBufferAsync (int maxBufferSize)
+               public async Task LoadIntoBufferAsync (long maxBufferSize)
                {
                        if (disposed)
                                throw new ObjectDisposedException (GetType ().ToString ());