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]
Beispiel #2
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]