mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix: downloader host fault tolerance (#1739)
Strip trailing slashes from Downloader download host.
This commit is contained in:
parent
8c392b7ee8
commit
d7d9623740
@ -65,7 +65,7 @@ class Downloader {
|
||||
* @param {string} downloadHost
|
||||
*/
|
||||
setDownloadHost(downloadHost) {
|
||||
this._downloadHost = downloadHost;
|
||||
this._downloadHost = downloadHost.replace(/\/+$/, '');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user