comparison roundup/cgi/client.py @ 4145:c15fcee3d8a1

Fix issue2550552.
author Stefan Seefeld <stefan@seefeld.name>
date Tue, 30 Jun 2009 01:32:06 +0000
parents da682f38bad3
children 51a098592b78
comparison
equal deleted inserted replaced
4140:3c4545f55949 4145:c15fcee3d8a1
1321 if content_range: 1321 if content_range:
1322 offset, length = content_range 1322 offset, length = content_range
1323 # RFC 2616 14.13: Content-Length 1323 # RFC 2616 14.13: Content-Length
1324 # 1324 #
1325 # Tell the client how much data we are providing. 1325 # Tell the client how much data we are providing.
1326 self.setHeader("Content-Length", length) 1326 self.setHeader("Content-Length", str(length))
1327 # Send the HTTP header. 1327 # Send the HTTP header.
1328 self.header() 1328 self.header()
1329 # If the client doesn't actually want the body, or if we are 1329 # If the client doesn't actually want the body, or if we are
1330 # indicating an invalid range. 1330 # indicating an invalid range.
1331 if (self.env['REQUEST_METHOD'] == 'HEAD' 1331 if (self.env['REQUEST_METHOD'] == 'HEAD'

Roundup Issue Tracker: http://roundup-tracker.org/