~ubuntu-branches/ubuntu/saucy/uwsgi/saucy

« back to all changes in this revision

Viewing changes to uploadtest.py

  • Committer: Package Import Robot
  • Author(s): Janos Guljas
  • Date: 2012-04-30 17:35:22 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20120430173522-qucwu1au3s9bflhb
Tags: 1.2+dfsg-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
def application(env, start_response):
7
7
 
 
8
    print(env.__class__)
 
9
    print(env['PATH_INFO'])
 
10
    print(env['REQUEST_METHOD'])
 
11
    print(env['wsgi.input'])
 
12
 
8
13
    if env['PATH_INFO'].startswith('/progress/'):
9
14
        start_response('200 Ok', [('Content-type', 'application/json')])
10
15
        filename = 'foobar/' + env['PATH_INFO'][10:]