We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45eee55 commit a7655ffCopy full SHA for a7655ff
src/net/http/transport.go
@@ -413,7 +413,7 @@ func (t *Transport) onceSetNextProtoDefaults() {
413
altProto, _ := t.altProto.Load().(map[string]RoundTripper)
414
if rv := reflect.ValueOf(altProto["https"]); rv.IsValid() && rv.Type().Kind() == reflect.Struct && rv.Type().NumField() == 1 {
415
if v := rv.Field(0); v.CanInterface() {
416
- if h2i, ok := v.Interface().(h2Transport); ok {
+ if h2i, ok := reflect.TypeAssert[h2Transport](v); ok {
417
t.h2transport = h2i
418
return
419
}
0 commit comments