This improvement https://github.com/xanzy/go-gitlab/commit/711e0b4cc5281875ca401e457d1d97f7eb6758cf should make this patch obsolete (TBC): https://github.com/EchoesHQ/gitlab-proxy/pull/21