1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00

Wipe the headers before reparsing

git-svn-id: file:///home/svn/framework3/trunk@7801 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2009-12-10 17:04:52 +00:00
parent 1c98368351
commit 5ef9a1c040
2 changed files with 2 additions and 2 deletions

View File

@ -364,6 +364,7 @@ class Client
def reread_response(resp, t = -1)
resp.max_data = config['read_max_data']
resp.headers = Packet::Header.new
resp.state = Packet::ParseState::ProcessingHeader
resp.parse('')

View File

@ -210,7 +210,7 @@ class Packet
self.headers.cmd_string
end
attr_reader :headers
attr_accessor :headers
attr_accessor :error
attr_accessor :state
attr_accessor :bufq
@ -226,7 +226,6 @@ class Packet
protected
attr_writer :headers
attr_writer :incomplete
attr_accessor :body_bytes_left
attr_accessor :inside_chunk