From 9600b8ffda2bae4b2a36b3e1c0d3e42d5de4682f Mon Sep 17 00:00:00 2001 From: Trong Huu Nguyen Date: Tue, 28 Jul 2026 11:11:55 +0200 Subject: [PATCH] fix(mock): set ReadHeaderTimeout on the relying party server The bare http.Server replaces the one httptest provides, dropping its timeouts along with it. --- pkg/mock/openid.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/mock/openid.go b/pkg/mock/openid.go index 7e33666..c0b072b 100644 --- a/pkg/mock/openid.go +++ b/pkg/mock/openid.go @@ -699,7 +699,8 @@ func (in *relyingPartyServer) GetURL() string { func (in *relyingPartyServer) SetHandler(handler http.Handler) { in.Config = &http.Server{ - Handler: handler, + Handler: handler, + ReadHeaderTimeout: 5 * time.Second, } }