diff --git a/buildbot_gitea/reporter.py b/buildbot_gitea/reporter.py index f31d3c7..390485e 100644 --- a/buildbot_gitea/reporter.py +++ b/buildbot_gitea/reporter.py @@ -46,7 +46,7 @@ class GiteaStatusPush(http.HttpStatusPushBase): self.baseURL = baseURL self._http = yield httpclientservice.HTTPClientService.getService( self.master, baseURL, - headers={'AuthorizationHeaderToken': 'token {}'.format(token)}, + headers={'Authorization': 'token {}'.format(token)}, debug=self.debug, verify=self.verify) self.verbose = verbose self.project_ids = {} diff --git a/buildbot_gitea/test/test_reporter.py b/buildbot_gitea/test/test_reporter.py index 0a6dae4..ba3b3ab 100644 --- a/buildbot_gitea/test/test_reporter.py +++ b/buildbot_gitea/test/test_reporter.py @@ -36,7 +36,7 @@ class TestGiteaStatusPush( yield self.master.startService() self._http = yield fakehttpclientservice.HTTPClientService.getFakeService( self.master, self, - "http://gitea", headers={'AuthorizationHeaderToken': 'token XXYYZZ'}, + "http://gitea", headers={'Authorization': 'token XXYYZZ'}, debug=None, verify=None) self.sp = sp = GiteaStatusPush("http://gitea/", Interpolate('XXYYZZ')) sp.sessionFactory = Mock(return_value=Mock())