Apparently BitBucket downloads only work over HTTPS.

Lest build the download URL from scratch to ensure that the correct protocol is used.
This commit is contained in:
Yahnis Elsts 2016-12-28 18:17:11 +02:00
parent 3004e10f75
commit 35a04faee6
1 changed files with 6 additions and 1 deletions

View File

@ -132,7 +132,12 @@ if ( !class_exists('Puc_v4_Vcs_BitBucketApi', false) ):
* @return string
*/
protected function getDownloadUrl($ref) {
return trailingslashit($this->repositoryUrl) . 'get/' . $ref . '.zip';
return sprintf(
'https://bitbucket.org/%s/%s/get/%s.zip',
$this->username,
$this->repository,
$ref
);
}
/**