diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2018-11-16 15:20:14 +0100 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-11-16 20:21:07 +0100 |
commit | 364678884bd13c0fff5f0c746b0e850347153c56 (patch) | |
tree | 78b969e622790bcb6b071c58d097c5869e26f856 /server/sonar-server-common | |
parent | 7b3100c87c761e5e8a7ef32df12abae7649d158d (diff) | |
download | sonarqube-364678884bd13c0fff5f0c746b0e850347153c56.tar.gz sonarqube-364678884bd13c0fff5f0c746b0e850347153c56.zip |
Revert "SONAR-11487 Update OKHttp to 3.11.0"
This reverts commit 8c4f5e460f7400358c20606e5708f5bc5ea4c966.
Diffstat (limited to 'server/sonar-server-common')
-rw-r--r-- | server/sonar-server-common/src/test/java/org/sonar/server/util/OkHttpClientProviderTest.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/sonar-server-common/src/test/java/org/sonar/server/util/OkHttpClientProviderTest.java b/server/sonar-server-common/src/test/java/org/sonar/server/util/OkHttpClientProviderTest.java index 9a1ffd80e1b..b6f2f037a98 100644 --- a/server/sonar-server-common/src/test/java/org/sonar/server/util/OkHttpClientProviderTest.java +++ b/server/sonar-server-common/src/test/java/org/sonar/server/util/OkHttpClientProviderTest.java @@ -66,8 +66,7 @@ public class OkHttpClientProviderTest { settings.setProperty("http.proxyPassword", "the-password"); OkHttpClient client = underTest.provide(settings.asConfig(), runtime); - Response response = new Response.Builder().protocol(Protocol.HTTP_1_1).request(new Request.Builder().url("http://foo").build()).code(407) - .message("").build(); + Response response = new Response.Builder().protocol(Protocol.HTTP_1_1).request(new Request.Builder().url("http://foo").build()).code(407).build(); Request request = client.proxyAuthenticator().authenticate(null, response); assertThat(request.header("Proxy-Authorization")).isEqualTo("Basic " + Base64.getEncoder().encodeToString("the-login:the-password".getBytes())); |