mirror of https://github.com/ArduPilot/ardupilot
AP_Scripting: use sendfile() in web server
This commit is contained in:
parent
1e1255c8f0
commit
9f08e5d317
|
@ -566,6 +566,8 @@ local function Client(_sock, _idx)
|
|||
elseif cgi_processing then
|
||||
DEBUG(string.format("%u: CGI processing %s", idx, path))
|
||||
run = self.send_cgi
|
||||
elseif sock:sendfile(file) then
|
||||
return true
|
||||
else
|
||||
run = self.send_file
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue