etesync-server/etebase_fastapi/sendfile/backends/xsendfile.py
2020-12-28 18:46:37 +02:00

7 lines
148 B
Python

from fastapi import Response
def sendfile(filename, **kwargs):
filename = str(filename)
return Response(headers={"X-Sendfile": filename})