From 97b39d3c64128ebea926fe9ae34463a9f09a465a Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 7 May 2016 14:12:30 +0200 Subject: [PATCH] Fix: Send Changeset and wrap in element --- osm/osm.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/osm/osm.go b/osm/osm.go index faeb2e6..1b72de4 100644 --- a/osm/osm.go +++ b/osm/osm.go @@ -191,8 +191,12 @@ func (c *Client) SaveNode(n *Node, cs *Changeset) error { urlPath = fmt.Sprintf("/node/%d", n.ID) } + n.Changeset = cs.ID + + data := Wrap{Nodes: []*Node{n}} + body := bytes.NewBuffer([]byte{}) - if err := xml.NewEncoder(body).Encode(n); err != nil { + if err := xml.NewEncoder(body).Encode(data); err != nil { return err }