mirror of
https://github.com/Luzifer/gpxhydrant.git
synced 2024-12-22 20:21:17 +00:00
Fix: Send Changeset and wrap in <osm> element
This commit is contained in:
parent
ace7819472
commit
97b39d3c64
1 changed files with 5 additions and 1 deletions
|
@ -191,8 +191,12 @@ func (c *Client) SaveNode(n *Node, cs *Changeset) error {
|
||||||
urlPath = fmt.Sprintf("/node/%d", n.ID)
|
urlPath = fmt.Sprintf("/node/%d", n.ID)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
n.Changeset = cs.ID
|
||||||
|
|
||||||
|
data := Wrap{Nodes: []*Node{n}}
|
||||||
|
|
||||||
body := bytes.NewBuffer([]byte{})
|
body := bytes.NewBuffer([]byte{})
|
||||||
if err := xml.NewEncoder(body).Encode(n); err != nil {
|
if err := xml.NewEncoder(body).Encode(data); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue