~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-19 08:15:21 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1052
common.interpret.execute_cgi: Don't read stdin if we're performing a
                              noop. Fixes POSTs to student code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
    # Write the HTTP body to a temporary file so it can be passed as a *real*
141
141
    # file to popen.
142
142
    f = os.tmpfile()
143
 
    body = req.read()
 
143
    body = req.read() if not noop else None
144
144
    if body is not None:
145
145
        f.write(body)
146
146
        f.flush()