hurl/integration/tests_ok/non_utf8.py

14 lines
268 B
Python
Raw Normal View History

from app import app
2021-10-16 15:30:00 +03:00
from flask import make_response, request
from io import BytesIO
2021-10-16 15:30:00 +03:00
@app.route("/non-utf8")
def non_utf8():
result = BytesIO()
result.write(b"\x41\x0a\xe9\x0a\xaa")
2021-10-16 15:30:00 +03:00
data = result.getvalue()
resp = make_response(data)
return resp