Browse Source

send user id in update request

Alan Shreve 12 years ago
parent
commit
aa99cc1cd4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ngrok/client/update_release.go

+ 1 - 1
src/ngrok/client/update_release.go

@@ -48,6 +48,7 @@ func autoUpdate(s *State, ctl *ui.Controller, token string) {
 	params.Add("version", version.MajorMinor())
 	params.Add("os", runtime.GOOS)
 	params.Add("arch", runtime.GOARCH)
+	params.Add("user", token)
 
 	updateUrl := updateEndpoint + "?" + params.Encode()
 	checkUrl := checkEndpoint + "?" + params.Encode()
@@ -90,7 +91,6 @@ func autoUpdate(s *State, ctl *ui.Controller, token string) {
 
 			// log error to ngrok.com's servers for debugging purposes
 			params.Add("error", err.Error())
-			params.Add("user", token)
 			resp, reportErr := http.PostForm("https://dl.ngrok.com/update/error", params)
 			if err != nil {
 				log.Error("Error while reporting update error: %v, %v", err, reportErr)