Commit: 854e8f93d8ca1a763fb35cf17073104f6b134eb6
Parent: 657234cdbc39a7f15603c6f09ae3d80351a137c5
Author: Ren Tatsumoto
Date: Mon, 16 Nov 2020 17:07:44 +0300
Fixes #13
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/subs2srs.lua b/subs2srs.lua
@@ -525,7 +525,9 @@ local function init_platform_windows()
end
self.curl_request = function(request_json, completion_fn)
- io.open(curl_tmpfile_path, "w"):write(request_json):close()
+ local handle = io.open(curl_tmpfile_path, "w")
+ handle:write(request_json)
+ handle:close()
local args = {
'curl',
'-s',