aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/upload/multipart.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/upload/multipart.lua b/src/luarocks/upload/multipart.lua
index 57aad42d..aad2e439 100644
--- a/src/luarocks/upload/multipart.lua
+++ b/src/luarocks/upload/multipart.lua
@@ -26,7 +26,7 @@ function File:mime()
26end 26end
27 27
28function File:content() 28function File:content()
29 local fd = io.open(self.fname) 29 local fd = io.open(self.fname, "rb")
30 if not fd then 30 if not fd then
31 return nil, "Failed to open file: "..self.fname 31 return nil, "Failed to open file: "..self.fname
32 end 32 end