|
@@ -567,6 +567,10 @@ func (t *Transport) newClientConn(c net.Conn, singleUse bool) (*ClientConn, erro
|
|
|
// henc in response to SETTINGS frames?
|
|
// henc in response to SETTINGS frames?
|
|
|
cc.henc = hpack.NewEncoder(&cc.hbuf)
|
|
cc.henc = hpack.NewEncoder(&cc.hbuf)
|
|
|
|
|
|
|
|
|
|
+ if t.AllowHTTP {
|
|
|
|
|
+ cc.nextStreamID = 3
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if cs, ok := c.(connectionStater); ok {
|
|
if cs, ok := c.(connectionStater); ok {
|
|
|
state := cs.ConnectionState()
|
|
state := cs.ConnectionState()
|
|
|
cc.tlsState = &state
|
|
cc.tlsState = &state
|