mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 12:28:21 +01:00
Fix SMTP/FTP subsystem for case-sensitive file names
This commit is contained in:
parent
ac3201d620
commit
a17f5af900
@ -73,7 +73,7 @@ function metat.__index:check(ok)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function metat.__index:command(cmd, arg)
|
function metat.__index:command(cmd, arg)
|
||||||
cmd = string.upper(cmd)
|
cmd = string.find(cmd, " ") and string.upper(cmd:match("(.-)%s")) .. cmd:match(".-(%s.+)") or string.upper(cmd)
|
||||||
if arg then
|
if arg then
|
||||||
return self.c:send(cmd .. " " .. arg.. "\r\n")
|
return self.c:send(cmd .. " " .. arg.. "\r\n")
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user