[PLT-539] Update incoming webhooks to accept multipart/form-data content (#7873)

This commit is contained in:
Carlos Tadeu Panato Junior
2018-02-16 17:29:12 +01:00
committed by Christopher Speller
parent 6d8f122a51
commit 8c3a7b75de
4 changed files with 57 additions and 18 deletions

View File

@@ -204,3 +204,12 @@ func IncomingWebhookRequestFromJson(data io.Reader) (*IncomingWebhookRequest, *A
return o, nil
}
func (o *IncomingWebhookRequest) ToJson() string {
b, err := json.Marshal(o)
if err != nil {
return ""
} else {
return string(b)
}
}