Changed cookie name
This commit is contained in:
@@ -53,7 +53,7 @@ func initDB() {
|
|||||||
|
|
||||||
func payHandler(w http.ResponseWriter, r *http.Request) {
|
func payHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
cookie, err := r.Cookie("amount")
|
cookie, err := r.Cookie("totalPrice")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.Error(w, "Не удалось получить amount из cookies", http.StatusBadRequest)
|
http.Error(w, "Не удалось получить amount из cookies", http.StatusBadRequest)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user