You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The http.Client docs state that A non-2xx response doesn't cause an error. If the download request returns a failed response code then resp.Body most likely doesn't contain the content you wanted and there is no way to tell that something went wrong.
I'd suggest using github.CheckResponse on the response or perhaps a simpler 2XX check since raw.githubusercontent.com may have different behavior than the api.