1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00

fix(api): fix an issue with optional numeric query parameter parsing

This commit is contained in:
Anthony Lapenna 2018-07-20 16:11:45 +02:00
parent 4129550d44
commit 509e3fa795
2 changed files with 5 additions and 0 deletions

View file

@ -1,6 +1,7 @@
package stacks
import (
"log"
"net/http"
"strconv"
@ -22,6 +23,7 @@ func (handler *Handler) stackDelete(w http.ResponseWriter, r *http.Request) *htt
}
externalStack, _ := request.RetrieveBooleanQueryParameter(r, "external", true)
log.Printf("External stack value: %v", externalStack)
if externalStack {
return handler.deleteExternalStack(r, w, stackID)
}