Fix #3028: actually use encodedQuery from URLEncoder to avoid encoding issues

This commit is contained in:
Matthieu De Beule 2019-03-07 20:53:22 +01:00
parent c1bfb9183c
commit c362a50e1b
1 changed files with 1 additions and 2 deletions

View File

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