Fixed incorrect authorization header for reporter
This commit is contained in:
parent
4661da0060
commit
7322dd3853
|
@ -46,7 +46,7 @@ class GiteaStatusPush(http.HttpStatusPushBase):
|
||||||
self.baseURL = baseURL
|
self.baseURL = baseURL
|
||||||
self._http = yield httpclientservice.HTTPClientService.getService(
|
self._http = yield httpclientservice.HTTPClientService.getService(
|
||||||
self.master, baseURL,
|
self.master, baseURL,
|
||||||
headers={'AuthorizationHeaderToken': 'token {}'.format(token)},
|
headers={'Authorization': 'token {}'.format(token)},
|
||||||
debug=self.debug, verify=self.verify)
|
debug=self.debug, verify=self.verify)
|
||||||
self.verbose = verbose
|
self.verbose = verbose
|
||||||
self.project_ids = {}
|
self.project_ids = {}
|
||||||
|
|
|
@ -36,7 +36,7 @@ class TestGiteaStatusPush(
|
||||||
yield self.master.startService()
|
yield self.master.startService()
|
||||||
self._http = yield fakehttpclientservice.HTTPClientService.getFakeService(
|
self._http = yield fakehttpclientservice.HTTPClientService.getFakeService(
|
||||||
self.master, self,
|
self.master, self,
|
||||||
"http://gitea", headers={'AuthorizationHeaderToken': 'token XXYYZZ'},
|
"http://gitea", headers={'Authorization': 'token XXYYZZ'},
|
||||||
debug=None, verify=None)
|
debug=None, verify=None)
|
||||||
self.sp = sp = GiteaStatusPush("http://gitea/", Interpolate('XXYYZZ'))
|
self.sp = sp = GiteaStatusPush("http://gitea/", Interpolate('XXYYZZ'))
|
||||||
sp.sessionFactory = Mock(return_value=Mock())
|
sp.sessionFactory = Mock(return_value=Mock())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user