diff options
Diffstat (limited to 'src/de/danoeh/antennapod/util/URLChecker.java')
-rw-r--r-- | src/de/danoeh/antennapod/util/URLChecker.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/de/danoeh/antennapod/util/URLChecker.java b/src/de/danoeh/antennapod/util/URLChecker.java index 94a9c276e..bb34feb99 100644 --- a/src/de/danoeh/antennapod/util/URLChecker.java +++ b/src/de/danoeh/antennapod/util/URLChecker.java @@ -21,7 +21,7 @@ public final class URLChecker { * @param url The url which is going to be prepared * @return The prepared url * */ - public static String prepareURL(final String url) { + public static String prepareURL(String url) { StringBuilder builder = new StringBuilder(); if (!url.startsWith("http")) { @@ -29,7 +29,7 @@ public final class URLChecker { if (AppConfig.DEBUG) Log.d(TAG, "Missing http; appending"); } else if (url.startsWith("https")) { if (AppConfig.DEBUG) Log.d(TAG, "Replacing https with http"); - url.replaceFirst("https", "http"); + url = url.replaceFirst("https", "http"); } builder.append(url); |