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

« back to all changes in this revision

Viewing changes to www/dispatch/request.py

  • Committer: mattgiuca
  • Date: 2008-01-18 05:03:08 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:246
request.py: Fixed Request.read (wasn't returning anything).

Show diffs side-by-side

added added

removed removed

Lines of Context:
220
220
        """Reads at most len bytes directly from the client. (See mod_python
221
221
        Request.read)."""
222
222
        if len is None:
223
 
            self.apache_req.read()
 
223
            return self.apache_req.read()
224
224
        else:
225
 
            self.apache_req.read(len)
 
225
            return self.apache_req.read(len)
226
226
 
227
227
    def throw_error(self, httpcode):
228
228
        """Writes out an HTTP error of the specified code. Raises an exception