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

« back to all changes in this revision

Viewing changes to lib/common/interpret.py

  • Committer: wagrant
  • Date: 2008-09-17 10:34:26 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1047
common.interpret: Use the table ability of mod_python's headers_out
                  property to make sure that we actually send all
                  headers, and not just the last of each kind.

Show diffs side-by-side

added added

removed removed

Lines of Context:
338
338
    else:
339
339
        # Generic HTTP header
340
340
        # FIXME: Security risk letting users write arbitrary headers?
341
 
        req.headers_out[name] = value
342
 
    cgiflags.headers[name] = value
 
341
        req.headers_out.add(name, value)
 
342
    cgiflags.headers[name] = value # FIXME: Only the last header will end up here.
343
343
 
344
344
def write_html_warning(req, text, warning="Warning"):
345
345
    """Prints an HTML warning about invalid CGI interaction on the part of the