Fix #3028: actually use encodedQuery from URLEncoder to avoid encoding issues
This commit is contained in:
parent
c1bfb9183c
commit
c362a50e1b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue