コード例 #1
0
def application(environ, start_response):
    content = REMOTE_USER(environ)
    start_response("200 OK", (('Content-Type', 'text/plain'),
                              ('Content-Length', len(content))))

    if six.PY3:
        content = content.encode('utf8')
    return [content]
コード例 #2
0
ファイル: test_auth_digest.py プロジェクト: 10sr/hue
def application(environ, start_response):
    content = REMOTE_USER(environ)
    start_response("200 OK",(('Content-Type', 'text/plain'),
                             ('Content-Length', len(content))))

    if six.PY3:
        content = content.encode('utf8')
    return [content]