lib/scrivito/cms_backend.rb in scrivito_sdk-0.50.0 vs lib/scrivito/cms_backend.rb in scrivito_sdk-0.50.1
- old
+ new
@@ -220,18 +220,18 @@
def request_blob_metadata_from_s3(url)
uri = URI.parse(url)
retried = false
begin
- response = ConnectionManager.request(uri, Net::HTTP::Head.new(uri.path))
+ response = ConnectionManager.request(uri, Net::HTTP::Head.new(uri))
@query_counter += 1
rescue NetworkError
raise if retried
retried = true
retry
end
- raise ScrivitoError, "S3 responded with #{reponse.code}" unless response.code == '200'
+ raise ScrivitoError, "S3 responded with #{response.code}" unless response.code == '200'
{
content_length: response['content-length'],
content_type: response['content-type'],
cache_control: response['cache-control'],