Kiln » gitkiln Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in master

automatically include authentication token on API requests if available

Changeset 90d073f7b05d

Parent dbaba83c560c

by Profile picture of User 12Benjamin Pollack <benjamin@fogcreek.com>

Changes to one file · Browse files at 90d073f7b05d Showing diff from parent dbaba83c560c Diff from another changeset...

Change 1 of 1 Show Entire File kiln/​kiln.go Stacked
 
225
226
227
 
 
 
228
229
230
 
225
226
227
228
229
230
231
232
233
@@ -225,6 +225,9 @@
  for key, value := range params {   v.Set(key, value)   } + if k.credentials.Token != "" { + v.Set("token", k.credentials.Token) + }   resp, err := http.Get(k.apiRoute(route) + "?" + v.Encode())   if err != nil {   return nil, err