From 71f1167182bc68902e0395f77cddd27bc2890652 Mon Sep 17 00:00:00 2001 From: Brandon McDonnell Date: Sat, 20 Oct 2018 14:30:27 +0000 Subject: [PATCH] protonmail: Change API endpoint for SendMessage. --- protonmail/messages.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protonmail/messages.go b/protonmail/messages.go index 9c1c85c..62f0bb3 100644 --- a/protonmail/messages.go +++ b/protonmail/messages.go @@ -565,7 +565,7 @@ type OutgoingMessage struct { } func (c *Client) SendMessage(msg *OutgoingMessage) (sent, parent *Message, err error) { - req, err := c.newJSONRequest(http.MethodPost, "/messages/send/"+msg.ID, msg) + req, err := c.newJSONRequest(http.MethodPost, "/messages/"+msg.ID, msg) if err != nil { return nil, nil, err }