diff MoinMoin/stats/pagesize.py @ 4176:85884c67228d

Replaced/removed calls to request.emit_http_headers
author Florian Krupicka <florian.krupicka@googlemail.com>
date Wed, 18 Jun 2008 00:28:07 +0200
parents bb2e053067fb
children fc20a076aad0
line wrap: on
line diff
--- a/MoinMoin/stats/pagesize.py	Tue Jun 17 18:36:56 2008 +0200
+++ b/MoinMoin/stats/pagesize.py	Wed Jun 18 00:28:07 2008 +0200
@@ -113,11 +113,8 @@
         (request.cfg.chart_options['width'], request.cfg.chart_options['height']),
         image, labels)
 
-    headers = [
-        "Content-Type: image/gif",
-        "Content-Length: %d" % len(image.getvalue()),
-    ]
-    request.emit_http_headers(headers)
+    request.response.content_type = 'image/gif'
+    request.response.content_length = len(image.getvalue())
 
     # copy the image
     image.reset()