disable auto URI encode in AsyncHttp client, fix #18949 (#18957)

This commit is contained in:
Arnold 2018-07-23 21:32:53 +08:00 committed by leda
parent 4797732518
commit fc09d1af05
1 changed files with 4 additions and 0 deletions

View File

@ -307,6 +307,10 @@ public class Cocos2dxDownloader {
// downloader._httpClient.setMaxRetriesAndTimeout(3, timeoutInSeconds * 1000);
downloader._httpClient.allowRetryExceptionClass(javax.net.ssl.SSLException.class);
//disable url auto decode
//fix https://github.com/cocos2d/cocos2d-x/issues/18949
downloader._httpClient.setURLEncodingEnabled(false);
downloader._tempFileNameSufix = tempFileNameSufix;
downloader._countOfMaxProcessingTasks = countOfMaxProcessingTasks;
return downloader;