Changed cookie name

This commit is contained in:
2025-02-16 15:31:11 +03:00
parent 964f1411da
commit 09b545bf47

View File

@@ -53,7 +53,7 @@ func initDB() {
func payHandler(w http.ResponseWriter, r *http.Request) {
cookie, err := r.Cookie("amount")
cookie, err := r.Cookie("totalPrice")
if err != nil {
http.Error(w, "Не удалось получить amount из cookies", http.StatusBadRequest)
return