mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-12 15:36:01 +03:00
17 lines
301 B
Python
17 lines
301 B
Python
from tests import app
|
|
from flask import make_response, request
|
|
from io import BytesIO
|
|
|
|
|
|
@app.route('/bytes')
|
|
def bytes():
|
|
result = BytesIO()
|
|
result.write(b'\xff')
|
|
data = result.getvalue()
|
|
resp = make_response(data)
|
|
resp.content_type = 'application/octet-stream'
|
|
return resp
|
|
|
|
|
|
|