blob: d10329e7836c5267e2e725871b0002c8341976b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import os
from wptserve.utils import isomorphic_encode
filename = os.path.basename(isomorphic_encode(__file__))
def main(request, response):
if request.method == u'POST':
return 302, [(b'Location', b'./%s?redirect' % filename)], b''
return [(b'Content-Type', b'text/plain')], request.request_path
|