GitHub Enterprise

Proposed fix for GitHub Enterprise, discussion at https://github.com/kohsuke/github-api/issues/29