Fix github plugin to work well with requests>1.0.0