Use the correct variable for error checking. Close #3232

This commit is contained in:
nnposter 2025-11-23 02:55:21 +00:00
parent a74125aef5
commit a04fc3389e

View file

@ -332,7 +332,7 @@ Helper = {
request:addAttributeGroup(ag)
local status, response = HTTP.Request( self.host, self.port, tostring(request) )
if ( not(response) ) then
if not status then
return status, response
end
@ -387,7 +387,7 @@ Helper = {
request:addAttributeGroup(ag)
local status, response = HTTP.Request( self.host, self.port, tostring(request) )
if ( not(response) ) then
if not status then
return status, response
end