File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/main/java/org/commonjava/indy/service/httprox/util Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 3636import java .nio .file .Files ;
3737import java .time .Duration ;
3838import java .time .temporal .TemporalUnit ;
39+ import java .util .Arrays ;
3940import java .util .UUID ;
4041import java .util .concurrent .TimeUnit ;
4142import java .util .concurrent .atomic .AtomicLong ;
@@ -188,6 +189,7 @@ public void reinit()
188189 .writeTimeout ( d )
189190 .connectTimeout ( d )
190191 .retryOnConnectionFailure ( true )
192+ .protocols ( Arrays .asList ( Protocol .HTTP_1_1 ) )
191193 .build ();
192194 }
193195
@@ -281,7 +283,7 @@ public CallAdapter call()
281283 // builder.addInterceptor( cleanupInterceptor );
282284 }
283285
284- callClient = builder .build ();
286+ callClient = builder .protocols ( Arrays . asList ( Protocol . HTTP_1_1 ) ). build ();
285287 }
286288
287289 return new CallAdapter ( callClient , requestBuilder , serviceConfig );
You can’t perform that action at this time.
0 commit comments