From: Michael Tremer Date: Thu, 10 Jul 2025 15:07:01 +0000 (+0000) Subject: api: debuginfo: Send the same headers as for regular downloads X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca68df68c0711cc6658cb672acbdadba40531038;p=pbs.git api: debuginfo: Send the same headers as for regular downloads Signed-off-by: Michael Tremer --- diff --git a/src/api/debuginfo.py b/src/api/debuginfo.py index 8badcc9e..c60df1af 100644 --- a/src/api/debuginfo.py +++ b/src/api/debuginfo.py @@ -37,10 +37,5 @@ async def get(buildid: str) -> fastapi.responses.StreamingResponse: if not file: raise fastapi.HTTPException(404, "Could not find debuginfo in %s" % package) - headers = { - # XXX This should set Content-Length - "Content-Type" : file.mimetype or "application/octet-stream", - } - # Stream the payload - return fastapi.responses.StreamingResponse(file.stream(), headers=headers) + return fastapi.responses.StreamingResponse(file.stream(), headers=file.headers)