summaryrefslogtreecommitdiffhomepage
path: root/test/python/encoding
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2023-02-28 10:30:50 -0800
committerKonstantin Pavlov <thresh@nginx.com>2023-02-28 10:30:50 -0800
commit2cc95374dee1fba712a8520c03b72a763ea0b40b (patch)
tree9cf241d0cd7e191466e91156c99429f9491c76ac /test/python/encoding
parentcae4a4e4185503725d412d52d880189f46b76ef5 (diff)
parent0af1253c17161b19a5c61a0bbb262f6cd2e515ed (diff)
downloadunit-2cc95374dee1fba712a8520c03b72a763ea0b40b.tar.gz
unit-2cc95374dee1fba712a8520c03b72a763ea0b40b.tar.bz2
Merged with the 1.29 branch.
Diffstat (limited to 'test/python/encoding')
-rw-r--r--test/python/encoding/wsgi.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/python/encoding/wsgi.py b/test/python/encoding/wsgi.py
new file mode 100644
index 00000000..0a916a9b
--- /dev/null
+++ b/test/python/encoding/wsgi.py
@@ -0,0 +1,12 @@
+import sys
+
+
+def application(environ, start_response):
+ start_response(
+ '200',
+ [
+ ('Content-Length', '0'),
+ ('X-Encoding', sys.getfilesystemencoding()),
+ ],
+ )
+ return []