libgit2/libgit2 — pull request #1879 by ben (2013-09-26 18:07:35+00:00)
Title: Redir refactor

As @vmg mentioned in [that other PR](https://github.com/libgit2/libgit2/pull/1877/files#r6584873), there was a lot of duplication when the HTTP->HTTPS redirect problem got fixed. This PR pulls out the common code to a central utility, and replaces the copypasta.