diff --git a/nselib/http.lua b/nselib/http.lua index 34d1744ed..ad924396f 100644 --- a/nselib/http.lua +++ b/nselib/http.lua @@ -781,6 +781,7 @@ end -- @param response A response received from the server for a request -- @return A table with the values received from the server function parseResult( response ) + if type(response) ~= "string" then return response end local result = {status=nil,["status-line"]=nil,header={},body=""} -- try and separate the head from the body