diff options
author | Miguel de Icaza <miguel@gnome.org> | 2014-11-02 03:49:10 +0300 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2014-11-02 03:49:10 +0300 |
commit | 5c23f1e15dc241f8f2f214d485eb186c04f09903 (patch) | |
tree | 74879b1a2c76164cd584d4e85ec81eec2a8d89cf /mcs/class/System.Web.Abstractions | |
parent | b11044a9a64a6b1eff3a0c79c2da2b2ba78808d3 (diff) |
Set ReadEntityBodyMode default to Classic to force clients to use the old method
for reading the input stream.
According to the MSDN docs, if ReadEntityBodyMode returns "Classic" the code should use
the old method to read the input stream (HttpRequestBase.InputStream) which is fully
implemented in mono.
Manually applied patch from martinjt
Diffstat (limited to 'mcs/class/System.Web.Abstractions')
-rw-r--r-- | mcs/class/System.Web.Abstractions/System.Web/HttpRequestWrapper.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mcs/class/System.Web.Abstractions/System.Web/HttpRequestWrapper.cs b/mcs/class/System.Web.Abstractions/System.Web/HttpRequestWrapper.cs index 35f631e37e7..197a7abd1c4 100644 --- a/mcs/class/System.Web.Abstractions/System.Web/HttpRequestWrapper.cs +++ b/mcs/class/System.Web.Abstractions/System.Web/HttpRequestWrapper.cs @@ -214,6 +214,12 @@ namespace System.Web } #endif +#if NET_4_5 + public override ReadEntityBodyMode ReadEntityBodyMode { + get { return ReadEntityBodyMode.Classic; } + } +#endif + public override Uri Url { get { return w.Url; } } |