lib/imgix/client.rb in imgix-0.2.0 vs lib/imgix/client.rb in imgix-0.2.1
- old
+ new
@@ -19,9 +19,9 @@
def sign_path(path)
uri = Addressable::URI.parse(path)
query = (uri.query || '')
signature = Digest::MD5.hexdigest(@token + uri.path + '?' + query)
- "#{@secure ? 'https' : 'http'}://#{@host}#{uri.path}?#{query}#{query.length > 0 ? '&' : ''}s=#{signature}"
+ "#{@secure ? 'https' : 'http'}://#{@host}#{uri.path}?#{query}&s=#{signature}"
end
end
end