rjack-httpclient-4 4.1.2.0-java → 4.1.2.1-java
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +5 -0
- data/lib/rjack-httpclient-4.rb +4 -4
- data/lib/rjack-httpclient-4/base.rb +1 -1
- metadata +1 -1
data/History.rdoc
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
=== 4.1.2.1 (2011-9-16)
|
2
|
+
* Adjust SchemaRegistry factory for backward incompatible change/bug
|
3
|
+
in 4.1.2, adversely affecting SSL, as described and disregarded
|
4
|
+
{here}[http://old.nabble.com/HttpClient-4.1.2-hostname-in-certificate-didn%27t-match-to32222087.html].
|
5
|
+
|
1
6
|
=== 4.1.2.0 (2011-9-16)
|
2
7
|
* Upgrade to httpclient 4.1.2, httpcore 4.1.3
|
3
8
|
|
data/lib/rjack-httpclient-4.rb
CHANGED
@@ -28,7 +28,7 @@ module RJack
|
|
28
28
|
|
29
29
|
import 'org.apache.http.client.params.ClientParamBean'
|
30
30
|
import 'org.apache.http.client.params.CookiePolicy'
|
31
|
-
import 'org.apache.http.conn.
|
31
|
+
import 'org.apache.http.conn.scheme.PlainSocketFactory'
|
32
32
|
import 'org.apache.http.conn.params.ConnManagerParamBean'
|
33
33
|
import 'org.apache.http.conn.params.ConnPerRouteBean'
|
34
34
|
import 'org.apache.http.conn.scheme.Scheme'
|
@@ -119,14 +119,14 @@ module RJack
|
|
119
119
|
# Create a default SchemeRegistry with http and https enabled.
|
120
120
|
def create_scheme_registry
|
121
121
|
sr = SchemeRegistry.new
|
122
|
-
sr.register( Scheme.new( "http",
|
123
|
-
sr.register( Scheme.new( "https",
|
122
|
+
sr.register( Scheme.new( "http", 80, plain_factory ) )
|
123
|
+
sr.register( Scheme.new( "https", 443, ssl_factory ) )
|
124
124
|
sr
|
125
125
|
end
|
126
126
|
|
127
127
|
# Return MultihomePlainSocketFactory instance
|
128
128
|
def plain_factory
|
129
|
-
|
129
|
+
PlainSocketFactory::socket_factory
|
130
130
|
end
|
131
131
|
|
132
132
|
# Return SSLSocketFactory instance
|