forked from quic-go/quic-go
log requests in the interop client
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"crypto/tls"
|
||||
"errors"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"net"
|
||||
"net/http"
|
||||
"strings"
|
||||
@@ -38,6 +39,8 @@ func (r *RoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
|
||||
return nil, errors.New("only GET requests supported")
|
||||
}
|
||||
|
||||
log.Printf("Requesting %s.\n", req.URL)
|
||||
|
||||
r.mutex.Lock()
|
||||
hostname := authorityAddr("https", hostnameFromRequest(req))
|
||||
if r.clients == nil {
|
||||
|
||||
Reference in New Issue
Block a user