lib/convert_api/task.rb in convert_api-1.1.0 vs lib/convert_api/task.rb in convert_api-1.2.0

- old
+ new

@@ -13,13 +13,14 @@ StoreFile: true, ) from_format = @from_format || detect_format(params) read_timeout = @conversion_timeout + config.conversion_timeout_delta + converter = params[:converter] ? "/converter/#{params[:converter]}" : '' response = ConvertApi.client.post( - "convert/#{from_format}/to/#{@to_format}", + "convert/#{from_format}/to/#{@to_format}#{converter}", params, read_timeout: read_timeout ) Result.new(response) @@ -70,6 +71,6 @@ def config ConvertApi.config end end -end +end \ No newline at end of file