Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed May 14, 2024
1 parent 1a03850 commit 399147d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions internal/testingx/httptestx.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ func MustNewHTTPServerEx(addr *net.TCPAddr, httpListener TCPListener, handler ht
Path: "/",
}
srv := &HTTPServer{
Config: &http.Server{
Handler: handler,
ReadHeaderTimeout: 5 * time.Second,
},
Config: &http.Server{Handler: handler},
Listener: listener,
TLS: nil,
URL: baseURL.String(),
Expand Down Expand Up @@ -116,10 +113,7 @@ func MustNewHTTPServerTLSEx(
otherNames = append(otherNames, extraSNIs...)

srv := &HTTPServer{
Config: &http.Server{
Handler: handler,
ReadHeaderTimeout: 5 * time.Second,
},
Config: &http.Server{Handler: handler},
Listener: listener,
TLS: ca.MustNewServerTLSConfig(commonName, otherNames...),
URL: baseURL.String(),
Expand Down

0 comments on commit 399147d

Please sign in to comment.