diff --git a/AmazonS3StreamWrapper.inc b/AmazonS3StreamWrapper.inc index 4335fc0..2778add 100644 --- a/AmazonS3StreamWrapper.inc +++ b/AmazonS3StreamWrapper.inc @@ -280,7 +280,7 @@ class AmazonS3StreamWrapper implements DrupalStreamWrapperInterface { $response = is_array($info['response']) ? $info['response'] : array(); // Generate the URL. - $url = $this->domain . '/' . $local_path; + $url = 'http:' . $this->domain . '/' . $local_path; if ($info['presigned_url'] && $this->cloudfront) { $url = $this->getCF()->get_private_object_url($this->domain, $local_path, $timeout, array('Secure' => $info['https']));