fix: downloader host fault tolerance (#1739)

Strip trailing slashes from Downloader download host.
This commit is contained in:
刘祺 2018-01-09 10:08:27 +08:00 committed by Andrey Lushnikov
parent 8c392b7ee8
commit d7d9623740

View File

@ -65,7 +65,7 @@ class Downloader {
* @param {string} downloadHost * @param {string} downloadHost
*/ */
setDownloadHost(downloadHost) { setDownloadHost(downloadHost) {
this._downloadHost = downloadHost; this._downloadHost = downloadHost.replace(/\/+$/, '');
} }
/** /**