1
0
mirror of https://github.com/etesync/server synced 2024-11-19 23:38:08 +00:00
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})