Commit 85e39f83 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

net/http: also clone DynamicRecordSizingDisabled in cloneTLSConfig

Updates #15771

Change-Id: I5dad96bdca19d680dd00cbd17b72a03e43eb557e
Reviewed-on: https://go-review.googlesource.com/23283Reviewed-by: default avatarTom Bergan <tombergan@google.com>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
parent be1b9306
...@@ -2024,6 +2024,8 @@ func cloneTLSConfig(cfg *tls.Config) *tls.Config { ...@@ -2024,6 +2024,8 @@ func cloneTLSConfig(cfg *tls.Config) *tls.Config {
MinVersion: cfg.MinVersion, MinVersion: cfg.MinVersion,
MaxVersion: cfg.MaxVersion, MaxVersion: cfg.MaxVersion,
CurvePreferences: cfg.CurvePreferences, CurvePreferences: cfg.CurvePreferences,
DynamicRecordSizingDisabled: cfg.DynamicRecordSizingDisabled,
Renegotiation: cfg.Renegotiation,
} }
} }
...@@ -2053,6 +2055,7 @@ func cloneTLSClientConfig(cfg *tls.Config) *tls.Config { ...@@ -2053,6 +2055,7 @@ func cloneTLSClientConfig(cfg *tls.Config) *tls.Config {
MinVersion: cfg.MinVersion, MinVersion: cfg.MinVersion,
MaxVersion: cfg.MaxVersion, MaxVersion: cfg.MaxVersion,
CurvePreferences: cfg.CurvePreferences, CurvePreferences: cfg.CurvePreferences,
DynamicRecordSizingDisabled: cfg.DynamicRecordSizingDisabled,
Renegotiation: cfg.Renegotiation, Renegotiation: cfg.Renegotiation,
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment