Skip to content

Commit babd767

Browse files
Oren Efratydsmiley
Oren Efraty
authored andcommitted
Set the default of useSystemProperties to true (like it used to be).
mitre#139
1 parent 3050d5c commit babd767

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ In the mean time, you'll have to add the jar files for this and its dependencies
3030
This proxy supports HttpClient 4.3, and newer version too.
3131
If you need to support _older_ HttpClient versions, namely 4.1 and 4.2, then use the 1.8 version of this proxy.
3232

33-
As of version 1.4 of the proxy, it will by default recognize "http.proxy" and
34-
most other standard Java system properties.
35-
3633
As of version 1.5 of the proxy, there is the ability to parameterize your proxy URL, allowing you to use
3734
the same web.xml servlet specification for multiple target servers. It follows the
3835
[URI Template RFC, Level 1](http://tools.ietf.org/html/rfc6570). Special query
@@ -43,6 +40,8 @@ IMPORTANT! The template substitutions must be placed in the query string, even w
4340
HTTP POST. Other application parameters can be in your POSTed url-encoded-form string; just not
4441
proxyArgs.
4542

43+
See [CHANGES.md](CHANGES.md) for a history of changes.
44+
4645
Build & Installation
4746
------------
4847

@@ -189,7 +188,7 @@ Create a new configuration property
189188
}
190189
```
191190

192-
Then create register Smiley's proxy servlet with Jetty through the Dropwizard service's App `run()` method.
191+
Then register Smiley's proxy servlet with Jetty through the Dropwizard service's App `run()` method.
193192

194193
```
195194
@Override

src/main/java/org/mitre/dsmiley/httpproxy/ProxyServlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public class ProxyServlet extends HttpServlet {
111111
protected boolean doPreserveHost = false;
112112
protected boolean doPreserveCookies = false;
113113
protected boolean doHandleRedirects = false;
114-
protected boolean useSystemProperties = false;
114+
protected boolean useSystemProperties = true;
115115
protected int connectTimeout = -1;
116116
protected int readTimeout = -1;
117117

0 commit comments

Comments
 (0)