hurl/integration/tests/error_query_invalid_utf8.py

13 lines
276 B
Python
Raw Normal View History

2020-08-27 10:07:46 +03:00
from tests import app
from flask import make_response
from io import BytesIO
2020-08-27 10:07:46 +03:00
@app.route("/error-query-invalid-utf8")
def error_query_invalid_utf8():
result = BytesIO()
result.write(b"\xff")
2020-08-27 10:07:46 +03:00
data = result.getvalue()
resp = make_response(data)
return resp