mikeylove commited on
Commit
beca3bb
·
verified ·
1 Parent(s): 016952f

Try forcing http1.1

Browse files
reascripts/ReaSpeech/source/ReaSpeechAPI.lua CHANGED
@@ -50,6 +50,7 @@ function ReaSpeechAPI:fetch_json(url_path, http_method, error_handler, timeout_h
50
  ' -m ', self.CURL_TIMEOUT_SECONDS,
51
  ' -s',
52
  ' -i',
 
53
  })
54
 
55
  app:debug('Fetch JSON: ' .. command)
@@ -122,6 +123,7 @@ function ReaSpeechAPI:fetch_large(url_path, http_method)
122
  http_method_argument,
123
  ' -i ',
124
  ' -o "', output_file, '"',
 
125
  })
126
 
127
  app:debug('Fetch large: ' .. command)
@@ -166,6 +168,7 @@ function ReaSpeechAPI:post_request(url_path, data, file_path)
166
  ' -H "Content-Type: multipart/form-data"',
167
  ' -F ', self:_maybe_quote('audio_file=@"' .. file_path .. '"'),
168
  ' -i ',
 
169
  ' -o "', output_file, '"',
170
  })
171
 
 
50
  ' -m ', self.CURL_TIMEOUT_SECONDS,
51
  ' -s',
52
  ' -i',
53
+ ' --http1.1',
54
  })
55
 
56
  app:debug('Fetch JSON: ' .. command)
 
123
  http_method_argument,
124
  ' -i ',
125
  ' -o "', output_file, '"',
126
+ ' --http1.1',
127
  })
128
 
129
  app:debug('Fetch large: ' .. command)
 
168
  ' -H "Content-Type: multipart/form-data"',
169
  ' -F ', self:_maybe_quote('audio_file=@"' .. file_path .. '"'),
170
  ' -i ',
171
+ ' --http1.1 ',
172
  ' -o "', output_file, '"',
173
  })
174