Skip to content

Commit

Permalink
Overflow Account.ID in 32bit systems fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sredni authored Aug 13, 2022
1 parent 646f510 commit 15d8618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion request.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func (insta *Instagram) sendRequest(o *reqOptions) (body []byte, h http.Header,
"X-Fb-Server-Cluster": "True",
}
if insta.Account != nil {
headers["Ig-Intended-User-Id"] = strconv.Itoa(int(insta.Account.ID))
headers["Ig-Intended-User-Id"] = strconv.FormatInt(insta.Account.ID, 10)
} else {
headers["Ig-Intended-User-Id"] = "0"
}
Expand Down

0 comments on commit 15d8618

Please sign in to comment.