Skip to content

Commit

Permalink
Handle 404 responses. Patch by nnposter.
Browse files Browse the repository at this point in the history
  • Loading branch information
sophron committed Jul 29, 2013
1 parent d6a013d commit 91858c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nselib/data/http-default-accounts-fingerprints.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ local function try_http_post_login(host, port, path, target, failstr, params, fo
if follow_redirects and ( status > 300 and status < 400 ) then
req = http.get(host, port, url.absolute(path, req.header.location), { no_cache = true, redirect_ok = false })
end
if not(http.response_contains(req, failstr)) then
if req.status and req.status ~= 404 and not(http.response_contains(req, failstr)) then
return true
end
return false
Expand Down

0 comments on commit 91858c5

Please sign in to comment.