diff options
author | Konstantin Pavlov <thresh@nginx.com> | 2023-02-28 10:30:50 -0800 |
---|---|---|
committer | Konstantin Pavlov <thresh@nginx.com> | 2023-02-28 10:30:50 -0800 |
commit | 2cc95374dee1fba712a8520c03b72a763ea0b40b (patch) | |
tree | 9cf241d0cd7e191466e91156c99429f9491c76ac /test/python/unicode/wsgi.py | |
parent | cae4a4e4185503725d412d52d880189f46b76ef5 (diff) | |
parent | 0af1253c17161b19a5c61a0bbb262f6cd2e515ed (diff) | |
download | unit-2cc95374dee1fba712a8520c03b72a763ea0b40b.tar.gz unit-2cc95374dee1fba712a8520c03b72a763ea0b40b.tar.bz2 |
Merged with the 1.29 branch.
Diffstat (limited to 'test/python/unicode/wsgi.py')
-rw-r--r-- | test/python/unicode/wsgi.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/python/unicode/wsgi.py b/test/python/unicode/wsgi.py new file mode 100644 index 00000000..40043af9 --- /dev/null +++ b/test/python/unicode/wsgi.py @@ -0,0 +1,8 @@ +def application(environ, start_response): + temp_dir = environ.get('HTTP_TEMP_DIR') + + with open(temp_dir + '/tempfile', 'w') as f: + f.write('\u26a0\ufe0f') + + start_response('200', [('Content-Length', '0')]) + return [] |