transport: set Response.TLS/Request
diff --git a/transport.go b/transport.go
index 2dd7848..a39ab9e 100644
--- a/transport.go
+++ b/transport.go
@@ -194,7 +194,10 @@
return nil, cc.werr
}
- return <-cs.resc, nil
+ resp := <-cs.resc
+ resp.Request = req
+ resp.TLS = &state
+ return resp, nil
}
func (cc *clientConn) encodeHeaders(req *http.Request) []byte {
diff --git a/transport_test.go b/transport_test.go
index a0d94a3..960f5ec 100644
--- a/transport_test.go
+++ b/transport_test.go
@@ -37,7 +37,6 @@
}
func TestTransport(t *testing.T) {
- condSkipFailingTest(t)
const body = "sup"
st := newServerTester(t, func(w http.ResponseWriter, r *http.Request) {
io.WriteString(w, body)