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:
parent
3004e10f75
commit
35a04faee6
|
|
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue