diff --git a/lib/textmagic_rest_client/api_client.rb b/lib/textmagic_rest_client/api_client.rb index a25899f..a49a5b3 100644 --- a/lib/textmagic_rest_client/api_client.rb +++ b/lib/textmagic_rest_client/api_client.rb @@ -264,7 +264,7 @@ def sanitize_filename(filename) def build_request_url(path) # Add leading and trailing slashes to path path = "/#{path}".gsub(/\/+/, '/') - URI.encode(@config.base_url + path) + URI.escape(@config.base_url + path) end # Builds the HTTP request body