forked from forgejo/forgejo
webhook deliver: keep Bearer prefix in history
This commit is contained in:
parent
36f05e6f4e
commit
5d45545ca1
2 changed files with 8 additions and 2 deletions
|
@ -132,7 +132,7 @@ func TestWebhookDeliverAuthorizationHeader(t *testing.T) {
|
|||
}
|
||||
|
||||
assert.True(t, hookTask.IsSucceed)
|
||||
assert.Equal(t, "******", hookTask.RequestInfo.Headers["Authorization"])
|
||||
assert.Equal(t, "Bearer ******", hookTask.RequestInfo.Headers["Authorization"])
|
||||
}
|
||||
|
||||
func TestWebhookDeliverHookTask(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue