outposts/proxy: fix potential empty redirect, add tests

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

#2141
This commit is contained in:
Jens Langhammer
2022-01-25 10:57:53 +01:00
parent 47777529ac
commit 1c2b452406
5 changed files with 85 additions and 19 deletions

View File

@ -71,7 +71,7 @@ func TestForwardHandleNginx_Single_Claims(t *testing.T) {
}
rr = httptest.NewRecorder()
a.forwardHandleTraefik(rr, req)
a.forwardHandleNginx(rr, req)
h := rr.Result().Header