~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to src/apps/server/__init__.py

  • Committer: mattgiuca
  • Date: 2007-12-14 04:19:50 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:60
server: Removed write to content_encoding (this is a read-only property of
    Request).
dispatch/request: Added "ensure_headers_written" and call it from init.
    This makes sure the HTTP headers are written even if there is no HTML
    header and footer and nothing else is written either.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        type = 'text/plain'
42
42
 
43
43
    req.content_type = type
44
 
    if encoding is not None:
45
 
        req.content_encoding = encoding
46
44
 
47
45
    req.write_html_head_foot = False
48
46