Changeset 4853

Show
Ignore:
Timestamp:
05/03/07 15:01:48 (1 year ago)
Author:
hdm
Message:

Improvements to the SSL socket support in Rex, fixes #102, and a HTTP client response parsing bug

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • framework3/tags/framework-3.0/lib/rex/proto/http/packet.rb

    r4259 r4853  
    7373        # 
    7474        def parse(buf) 
     75 
    7576                # Append the incoming buffer to the buffer queue. 
    7677                self.bufq += buf 
     
    8586                        # processing headers), do that now. 
    8687                        if (self.state == ParseState::ProcessingBody) 
    87                                 parse_body 
     88                                if (self.body_bytes_left == 0) 
     89                                        self.state = ParseState::Completed 
     90                                else 
     91                                        parse_body 
     92                                end 
    8893                        end 
    8994                rescue