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

« back to all changes in this revision

Viewing changes to console/python-console

  • Committer: mattgiuca
  • Date: 2008-01-23 06:38:38 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:275
python-console: If unauthorized, prints "401 Unauthorized" instead of nothing
(confusing).

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
        # Authenticate
120
120
        digest = md5.new(inp.text + magic).digest().encode('hex')
121
121
        if inp.digest != digest:
 
122
            web.output("401 Unauthorized")
122
123
            web.ctx.status = '401 Unauthorized'
123
124
            return
124
125