We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 550cc98 + ca6fd39 commit 3b65fe7Copy full SHA for 3b65fe7
src/Qiniu/Processing/Operation.php
@@ -44,13 +44,13 @@ public function execute($key, $fops)
44
return array($resp->body, null);
45
}
46
47
- public function buildUrl($key, $fops)
+ public function buildUrl($key, $fops, $protocol = 'http')
48
{
49
if (is_array($fops)) {
50
$fops = implode('|', $fops);
51
52
53
- $url = "http://$this->domain/$key?$fops";
+ $url = $protocol."://$this->domain/$key?$fops";
54
if ($this->auth !== null) {
55
$url = $this->auth->privateDownloadUrl($url, $this->token_expire);
56
0 commit comments