Skip to content

Commit 3b65fe7

Browse files
committed
Merge pull request #172 from JellyBool/master
Change buildUrl to support https
2 parents 550cc98 + ca6fd39 commit 3b65fe7

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)