mirror of
https://github.com/nais/wonderwall.git
synced 2026-08-19 11:06:17 +00:00
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:
+2
-1
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user