mirror of https://github.com/portainer/portainer
fix(api): fix invalid endpoint create payload
parent
ab77f149fa
commit
d2702d6d7b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue