You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by tv...@apache.org on 2009/06/19 20:44:12 UTC
svn commit: r786618 -
/incubator/pivot/trunk/web/src/org/apache/pivot/web/Query.java
Author: tvolkert
Date: Fri Jun 19 18:44:12 2009
New Revision: 786618
URL: http://svn.apache.org/viewvc?rev=786618&view=rev
Log:
Made Query attempt to detect system proxy settings
Modified:
incubator/pivot/trunk/web/src/org/apache/pivot/web/Query.java
Modified: incubator/pivot/trunk/web/src/org/apache/pivot/web/Query.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/web/src/org/apache/pivot/web/Query.java?rev=786618&r1=786617&r2=786618&view=diff
==============================================================================
--- incubator/pivot/trunk/web/src/org/apache/pivot/web/Query.java (original)
+++ incubator/pivot/trunk/web/src/org/apache/pivot/web/Query.java Fri Jun 19 18:44:12 2009
@@ -155,6 +155,16 @@
private static final String HTTPS_PROTOCOL = "https";
private static final String URL_ENCODING = "UTF-8";
+ static {
+ try {
+ // See http://java.sun.com/javase/6/docs/technotes/guides/net/proxies.html
+ // For more info on this system property
+ System.setProperty("java.net.useSystemProxies", "true");
+ } catch (SecurityException exception) {
+ // No-op
+ }
+ }
+
/**
* Creates a new web query.
*