Commit 0d1da01d authored by Lukas Matt's avatar Lukas Matt

Rename PushJsonToPrivate and PushXmlToPublic

to PushToPrivate and PushToPublic
parent 6dce2b6d
......@@ -36,11 +36,11 @@ const (
var timeout = time.Duration(10 * time.Second)
func PushJsonToPrivate(host, guid string, body io.Reader) error {
func PushToPrivate(host, guid string, body io.Reader) error {
return push(host, "/receive/users/" + guid, PROTO_HTTPS, CONTENT_TYPE_JSON, body)
}
func PushXmlToPublic(host string, body io.Reader) error {
func PushToPublic(host string, body io.Reader) error {
return push(host, "/receive/public", PROTO_HTTPS, CONTENT_TYPE_ENVELOPE, body)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment