From 422d5eddcd87e8ab0d9478a27853c467315e2604 Mon Sep 17 00:00:00 2001 From: Bohdan Mateiko Date: Fri, 8 Oct 2021 13:16:44 +0300 Subject: [PATCH] fixes updating of existing route --- ciscoasa/routing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ciscoasa/routing.go b/ciscoasa/routing.go index bd3d442..82298e3 100644 --- a/ciscoasa/routing.go +++ b/ciscoasa/routing.go @@ -168,7 +168,7 @@ func (s *routingService) UpdateStaticRoute(routeID, iface, network, gateway stri r.Interface.Name = iface r.Interface.Kind = "objectRef#Interface" - req, err := s.newRequest("POST", u, r) + req, err := s.newRequest("PUT", u, r) if err != nil { return "", err }