Skip to content

Commit 0d4cb3d

Browse files
committed
feat: add custom header
1 parent eeedc8c commit 0d4cb3d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/api/v1/api_pdf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ async def pdf_compressor(
5151
"X-Compressed-size": str(compressed_size),
5252
"X-Reduction-Percent": f"{reduction:.2f}",
5353
"X-Quality-Level": quality,
54+
"X-Compressed-Filename": f"{file_name}_compress.pdf"
5455
},
5556
)
5657
except Exception as e:

0 commit comments

Comments
 (0)