summaryrefslogtreecommitdiffstats
path: root/mixpanel.go
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-09-11 03:05:15 -0700
committerraylu <raylu@mixpanel.com>2011-09-11 03:05:15 -0700
commitc4bdcf9ff6814516da1940b4f774d47ca9e0b73b (patch)
tree8e177b85edf2aedc88e35cf58fc4c587a2f28d60 /mixpanel.go
parenta6b266a2e68af686c96890fd341953bdb1bff481 (diff)
downloadaudioaxis-c4bdcf9ff6814516da1940b4f774d47ca9e0b73b.tar.xz
update for go release 60
Diffstat (limited to 'mixpanel.go')
-rw-r--r--mixpanel.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/mixpanel.go b/mixpanel.go
index 6c370bd..7c432bf 100644
--- a/mixpanel.go
+++ b/mixpanel.go
@@ -5,6 +5,7 @@ import (
"encoding/base64"
"json"
"log"
+ "url"
)
func init() {
@@ -34,7 +35,7 @@ func track(event, ip, id, song, user string) {
return
}
- values := make(http.Values)
+ values := make(url.Values)
values.Add("data", base64.StdEncoding.EncodeToString(dataJSON))
r, err := http.PostForm("https://api.mixpanel.com/track/", values)
if err == nil {