Changes between Version 32 and Version 33 of EggCookingTutorial/BasicEggCooking

Show
Ignore:
Author:
kumma (IP: 0.0.0.0)
Timestamp:
02/28/11 14:49:39 (2 years ago)
Comment:

see http://trac-hacks.org/attachment/ticket/6993/content-length.patch

Legend:

Unmodified
Added
Removed
Modified
  • EggCookingTutorial/BasicEggCooking

    v32 v33  
    5656    def process_request(self, req): 
    5757        req.send_response(200) 
     58        abuffer = 'Hello world!' 
    5859        req.send_header('Content-Type', 'text/plain') 
     60        req.send_header('Content-length', str(len(abuffer))) 
    5961        req.end_headers() 
    60         req.write('Hello world!'
     62        req.write(abuffer
    6163}}} 
    6264