Browse Source

Fixing QR

unknown 4 years ago
parent
commit
1f76fcc5ff
1 changed files with 0 additions and 1 deletions
  1. 0 1
      main.go

+ 0 - 1
main.go

@@ -201,7 +201,6 @@ func GenerateQR(w http.ResponseWriter, r *http.Request) {
 	generateFromText(qrtext, filename) // qrtext - текст в QR, filename - имя файла
 	w.Header().Set("Content-Disposition", fmt.Sprintf("attachment; filename=\"%s\"", filename +".png"))
 	http.ServeFile(w, r, filename)
-	os.Remove(filename + ".png")
 }
 
 func generateFromText(text string, filename string) {