diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/upload/multipart.lua | 2 |
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() | |||
26 | end | 26 | end |
27 | 27 | ||
28 | function File:content() | 28 | function 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 |