Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -517,7 +517,7 @@ func ExportProductPriceListPDFHandler(pg *sql.DB) http.HandlerFunc {
|
||||
|
||||
now := time.Now()
|
||||
w.Header().Set("Content-Type", "application/pdf")
|
||||
w.Header().Set("Content-Disposition", fmt.Sprintf("inline; filename=%q", fmt.Sprintf("baggi_guncel_fiyat_listesi_%s.pdf", now.Format("20060102"))))
|
||||
w.Header().Set("Content-Disposition", fmt.Sprintf("attachment; filename=%q", fmt.Sprintf("Fiyat_Listesi-%s.pdf", now.Format("20060102-1504"))))
|
||||
w.WriteHeader(http.StatusOK)
|
||||
_, _ = w.Write(buf.Bytes())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user