Fixed Issue with Redirect from Github API

The old code looked for ContentLength but it would be -1 on first
redirect. Instead of doing a byte by byte read, I am just using copyto
function.