|
@@ -244,8 +244,8 @@ func getUserInfo(token string, username string) userInfo {
|
|
|
req.Header.Add("Accept", "text/plain")
|
|
|
req.Header.Add("Cookie", token)
|
|
|
res, err := client.Do(req)
|
|
|
- defer res.Body.Close()
|
|
|
body, err := ioutil.ReadAll(res.Body)
|
|
|
+ defer res.Body.Close()
|
|
|
//fmt.Println("Getting Data for Response: ", body)
|
|
|
user := userInfo{}
|
|
|
json.Unmarshal(body, &user)
|