feat(pdfs): Set download names for pdf generation responses
This commit is contained in:
@@ -72,6 +72,7 @@ func (h *DefaultHandler) GenerateContract(c *fiber.Ctx) error {
|
||||
}
|
||||
|
||||
c.Set(fiber.HeaderContentType, "application/pdf")
|
||||
c.Set(fiber.HeaderContentDisposition, "attachment; filename=runner-contracts.pdf")
|
||||
return c.Send(pdf)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user