protonmail: Change API endpoint for SendMessage.

This commit is contained in:
Brandon McDonnell 2018-10-20 14:30:27 +00:00
parent 9a6f7187a5
commit 71f1167182
1 changed files with 1 additions and 1 deletions

View File

@ -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
}