Changed cookie name
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user