Skip to content

Commit

Permalink
chore(dependencies): kork 5.4.8 (#422)
Browse files Browse the repository at this point in the history
fixes okhttp interceptor constructor
  • Loading branch information
cfieber committed Jun 7, 2019
1 parent 1d0ef72 commit 1cf3baa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,14 @@ RestAdapter.LogLevel retrofitLogLevel(@Value("${retrofit.log-level:BASIC}") Stri

@Bean
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
OkClient okClient(Registry registry) {
OkClient okClient(
Registry registry,
@Value("${ok-http-client.interceptor.skip-header-check:false}") boolean skipHeaderChecks) {
val client = okHttpClientConfig.create();
client.setConnectionPool(new ConnectionPool(maxIdleConnections, keepAliveDurationMs));
client.setRetryOnConnectionFailure(retryOnConnectionFailure);
client.interceptors().add(new RetryingInterceptor(maxElapsedBackoffMs));
client.interceptors().add(new OkHttpMetricsInterceptor(registry));
client.interceptors().add(new OkHttpMetricsInterceptor(registry, skipHeaderChecks));

return new OkClient(client);
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Jun 05 20:00:37 UTC 2019
enablePublishing=false
korkVersion=5.4.6
korkVersion=5.4.8
spinnakerGradleVersion=6.5.0
org.gradle.parallel=true
includeProviders=file,github,google-groups,ldap

0 comments on commit 1cf3baa

Please sign in to comment.