Merge pull request #3055 from matdb/develop
Fix #3028: actually use encodedQuery from URLEncoder to avoid encoding issues
This commit is contained in:
commit
2818bb62ab
|
@ -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