From 55deea7849ea93a724c8941f235d30a425eefcdc Mon Sep 17 00:00:00 2001 From: Haroon Khan Date: Mon, 11 Apr 2022 19:16:04 +0100 Subject: [PATCH] [JAVA-11283] Use https link for short url --- httpclient-2/README.md | 2 +- .../httpclient/expandurl/HttpClientExpandUrlLiveTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/httpclient-2/README.md b/httpclient-2/README.md index 695a92ce00..571a45f207 100644 --- a/httpclient-2/README.md +++ b/httpclient-2/README.md @@ -12,5 +12,5 @@ The "REST With Spring" Classes: http://bit.ly/restwithspring - [Reading an HTTP Response Body as a String in Java](https://www.baeldung.com/java-http-response-body-as-string) - [How To Get Cookies From the Apache HttpClient Response](https://www.baeldung.com/java-apache-httpclient-cookies) - [Enabling Logging for Apache HttpClient](https://www.baeldung.com/apache-httpclient-enable-logging) -- [Expand Shortened URLs with Apache HttpClient](https://www.baeldung.com/unshorten-url-httpclient) +- [Expand Shortened URLs with Apache HttpClient](https://www.baeldung.com/apache-httpclient-expand-url) - More articles: [[<-- prev]](../httpclient) diff --git a/httpclient-2/src/test/java/com/baeldung/httpclient/expandurl/HttpClientExpandUrlLiveTest.java b/httpclient-2/src/test/java/com/baeldung/httpclient/expandurl/HttpClientExpandUrlLiveTest.java index fb3d730ec4..5a8c87f4aa 100644 --- a/httpclient-2/src/test/java/com/baeldung/httpclient/expandurl/HttpClientExpandUrlLiveTest.java +++ b/httpclient-2/src/test/java/com/baeldung/httpclient/expandurl/HttpClientExpandUrlLiveTest.java @@ -33,8 +33,8 @@ public class HttpClientExpandUrlLiveTest { @Test public final void givenShortenedOnce_whenUrlIsExpanded_thenCorrectResult() throws IOException { - final String expectedResult = "http://www.baeldung.com/rest-versioning"; - final String actualResult = expandSingleLevel("http://bit.ly/13jEoS1"); + final String expectedResult = "https://www.baeldung.com/rest-versioning"; + final String actualResult = expandSingleLevel("http://bit.ly/3LScTri"); assertThat(actualResult, equalTo(expectedResult)); }