hurl/integration/tests/non_utf8.py
2021-10-17 20:33:21 +02:00

14 lines
270 B
Python

from tests import app
from flask import make_response, request
from io import BytesIO
@app.route("/non-utf8")
def non_utf8():
result = BytesIO()
result.write(b'\x41\x0a\xe9\x0a\xaa')
data = result.getvalue()
resp = make_response(data)
return resp