diff options
author | campersau <buchholz.bastian@googlemail.com> | 2019-12-02 07:20:15 +0300 |
---|---|---|
committer | Kenneth Pouncey <kjpou@pt.lu> | 2019-12-02 07:20:15 +0300 |
commit | b0f0b14023c17bdd7e8a1bfe4cc044590b5bb491 (patch) | |
tree | 43cc7d2aa96ccdc6d38e80dc28826b5a39197b60 /mcs/class | |
parent | d33ce1c3ec6c477af5d28f3c1a3b5c29b2374cb0 (diff) |
[wasm][bcl][http] Fix descriptive message for the `PlatformNotSupportedException` (#17919)
* Fix descriptive message for the `PlatformNotSupportedException`
* Add more descriptive message to the `Properties` `PlatformNotSupportedException`
Diffstat (limited to 'mcs/class')
-rw-r--r-- | mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.wasm.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.wasm.cs b/mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.wasm.cs index 4091de7d2a6..20196dbdf61 100644 --- a/mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.wasm.cs +++ b/mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.wasm.cs @@ -78,8 +78,8 @@ namespace System.Net.Http } public bool UseProxy { - get => throw new PlatformNotSupportedException ("Property AutomaticDecompression is not supported."); - set => throw new PlatformNotSupportedException ("Property AutomaticDecompression is not supported."); + get => throw new PlatformNotSupportedException ("Property UseProxy is not supported."); + set => throw new PlatformNotSupportedException ("Property UseProxy is not supported."); } public IWebProxy Proxy { @@ -132,7 +132,7 @@ namespace System.Net.Http set => throw new PlatformNotSupportedException ("Property MaxRequestContentBufferSize is not supported."); } - public IDictionary<string, object> Properties => throw new PlatformNotSupportedException (); + public IDictionary<string, object> Properties => throw new PlatformNotSupportedException ("Property Properties is not supported."); public static Func<HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool> DangerousAcceptAnyServerCertificateValidator { get; } = delegate { return true; }; |