File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
google-http-client/src/main/java/com/google/api/client/http/javanet Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,8 @@ Proxy.Type.HTTP, new InetSocketAddress(
81
81
Arrays .sort (SUPPORTED_METHODS );
82
82
}
83
83
84
+ private static final String SHOULD_USE_PROXY_FLAG = "com.google.api.client.should_use_proxy" ;
85
+
84
86
/** Factory to produce connections from {@link URL}s */
85
87
private final ConnectionFactory connectionFactory ;
86
88
@@ -130,7 +132,7 @@ public NetHttpTransport() {
130
132
131
133
private ConnectionFactory getConnectionFactory (ConnectionFactory connectionFactory ) {
132
134
if (connectionFactory == null ) {
133
- if (System .getProperty ("com.api.client.should_use_proxy" ) != null ) {
135
+ if (System .getProperty (SHOULD_USE_PROXY_FLAG ) != null ) {
134
136
return new DefaultConnectionFactory (defaultProxy ());
135
137
}
136
138
return new DefaultConnectionFactory ();
@@ -329,7 +331,7 @@ public Builder setHostnameVerifier(HostnameVerifier hostnameVerifier) {
329
331
330
332
/** Returns a new instance of {@link NetHttpTransport} based on the options. */
331
333
public NetHttpTransport build () {
332
- if (System .getProperty ("com.google.api.client.should_use_proxy" ) != null ) {
334
+ if (System .getProperty (SHOULD_USE_PROXY_FLAG ) != null ) {
333
335
setProxy (defaultProxy ());
334
336
}
335
337
return this .proxy == null
You can’t perform that action at this time.
0 commit comments