Thrift-1456: System.Net.HttpWebRequest' does not contain a definition for 'Proxy'
authorJake Farrell <jfarrell@apache.org>
Fri, 9 Dec 2011 02:21:37 +0000 (02:21 +0000)
committerJake Farrell <jfarrell@apache.org>
Fri, 9 Dec 2011 02:21:37 +0000 (02:21 +0000)
Client: delphi
Patch: Jens Geyer

Fix for Silverlight 'System.Net.HttpWebRequest' does not contain a definition for 'Proxy'

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1212223 13f79535-47bb-0310-9956-ffa450edef68

lib/csharp/src/Transport/THttpClient.cs

index 768b64e..717907c 100644 (file)
@@ -189,7 +189,9 @@ namespace Thrift.Transport
 #endif
                        }
 
+#if !SILVERLIGHT
                        connection.Proxy = null;
+#endif
 
             return connection;
                }