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

fix(api): fix invalid endpoint create payload

This commit is contained in:
Anthony Lapenna 2018-07-26 10:13:18 +02:00
parent ab77f149fa
commit d2702d6d7b

View file

@ -57,6 +57,9 @@ func (payload *endpointCreatePayload) Validate(r *http.Request) error {
return portainer.Error("Invalid Tags parameter")
}
payload.Tags = tags
if payload.Tags == nil {
payload.Tags = make([]string, 0)
}
useTLS, _ := request.RetrieveBooleanMultiPartFormValue(r, "TLS", true)
payload.TLS = useTLS