Skip to content

Commit ea807ab

Browse files
author
Laurynas Butkus
committed
Fix URI escape deprecation
1 parent 07b3df3 commit ea807ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/convert_api/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def post(path, params, options = {})
4848
def upload(io, filename)
4949
handle_response do
5050
request_uri = base_uri.path + 'upload'
51-
encoded_filename = URI.encode(filename)
51+
encoded_filename = CGI.escape(filename)
5252

5353
headers = DEFAULT_HEADERS.merge(
5454
'Content-Type' => 'application/octet-stream',

0 commit comments

Comments
 (0)