Skip to content

Commit a65bd0a

Browse files
committed
Change buildUrl to support https
Add an argument to buildUrl to make it support https
1 parent 550cc98 commit a65bd0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Qiniu/Processing/Operation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ public function execute($key, $fops)
4444
return array($resp->body, null);
4545
}
4646

47-
public function buildUrl($key, $fops)
47+
public function buildUrl($key, $fops$protocol = 'http')
4848
{
4949
if (is_array($fops)) {
5050
$fops = implode('|', $fops);
5151
}
5252

53-
$url = "http://$this->domain/$key?$fops";
53+
$url = $protocol."://$this->domain/$key?$fops";
5454
if ($this->auth !== null) {
5555
$url = $this->auth->privateDownloadUrl($url, $this->token_expire);
5656
}

0 commit comments

Comments
 (0)