fix(mock): set ReadHeaderTimeout on the relying party server

The bare http.Server replaces the one httptest provides, dropping its
timeouts along with it.
This commit is contained in:
Trong Huu Nguyen
2026-07-28 11:43:54 +02:00
parent 29c7de357e
commit 9600b8ffda
+2 -1
View File
@@ -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,
}
}