Merge pull request #3055 from matdb/develop

Fix #3028: actually use encodedQuery from URLEncoder to avoid encoding issues
This commit is contained in:
H. Lehmann 2019-03-08 11:27:15 +01:00 committed by GitHub
commit 2818bb62ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -311,8 +311,7 @@ public class ItunesSearchFragment extends Fragment {
encodedQuery = query; // failsafe encodedQuery = query; // failsafe
} }
//Spaces in the query need to be replaced with '+' character. String formattedUrl = String.format(API_URL, encodedQuery);
String formattedUrl = String.format(API_URL, query).replace(' ', '+');
OkHttpClient client = AntennapodHttpClient.getHttpClient(); OkHttpClient client = AntennapodHttpClient.getHttpClient();
Request.Builder httpReq = new Request.Builder() Request.Builder httpReq = new Request.Builder()