mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-18 16:11:34 +03:00
14 lines
330 B
Python
14 lines
330 B
Python
from app import app
|
|
from flask import make_response, request
|
|
from io import BytesIO
|
|
|
|
|
|
@app.route("/error-assert-bytearray")
|
|
def error_assert_bytearray():
|
|
result = BytesIO()
|
|
result.write(b"\xff")
|
|
data = result.getvalue()
|
|
resp = make_response(data)
|
|
resp.content_type = "application/octet-stream"
|
|
return resp
|