From 1963fe7b96b16b516e008c4ca9858fe665c3be8c Mon Sep 17 00:00:00 2001 From: batrick Date: Fri, 3 Jul 2009 04:05:10 +0000 Subject: [PATCH] Removed some code that did nothing. --- nselib/http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/http.lua b/nselib/http.lua index fd9b9f9bb..ebce36513 100644 --- a/nselib/http.lua +++ b/nselib/http.lua @@ -257,7 +257,7 @@ request = function( host, port, data, options ) while ( ptr < ( type( body ) == "string" and body:len() ) or 1 ) do local hex = body:match( pattern, ptr ) if not hex then break end - chunk_len = tonumber( hex or 0, 16 ) or nil + chunk_len = tonumber( hex or 0, 16 ) if chunk_len then start = ptr + hex:len() + 2*body_delim:len() ptr = start + chunk_len