mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
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
|
elseif cgi_processing then
|
||||||
DEBUG(string.format("%u: CGI processing %s", idx, path))
|
DEBUG(string.format("%u: CGI processing %s", idx, path))
|
||||||
run = self.send_cgi
|
run = self.send_cgi
|
||||||
|
elseif sock:sendfile(file) then
|
||||||
|
return true
|
||||||
else
|
else
|
||||||
run = self.send_file
|
run = self.send_file
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user