Changeset 303 for branches/0.5/daemon/orbited/dispatch.py

Show
Ignore:
Timestamp:
06/23/08 08:51:54 (7 months ago)
Author:
frank
Message:

dispatch and orbited.js changes to get legacy apps working

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.5/daemon/orbited/dispatch.py

    r293 r303  
    109109        data, self.buffer = self.buffer.split('\r\n\r\n', 1) 
    110110        protocol, raw_headers = data.split('\r\n', 1) 
     111         
     112        #remove frame type 
     113        frame_type, raw_headers = raw_headers.split('\r\n', 1) 
     114         
     115        logger.info(raw_headers) 
    111116        header_fields =[ d.split(': ') for d in raw_headers.split('\r\n') ] 
    112117        headers = { 'recipients': [ ] } 
     118 
    113119        for (key, val) in header_fields: 
    114120            key = key.lower() 
     
    122128            else: 
    123129                headers[key] = val 
     130 
    124131        self.current_headers = headers 
    125132        self.state = 'body'