Changes between Version 32 and Version 33 of EggCookingTutorial/BasicEggCooking


Ignore:
Timestamp:
Feb 28, 2011, 1:49:39 PM (13 years ago)
Author:
kumma
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