diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2023-04-12 00:28:06 +0200 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-04-11 22:42:18 +0000 |
| commit | bc5b194813d1a59daec29bd81f6bc092948a2f0a (patch) | |
| tree | 290a86850c84c177ddb4ad41a99f271a77202a1a /src/net/http/socks_bundle.go | |
| parent | 1635205a72d26721af54f01ccbab8e0b51ded3a9 (diff) | |
| download | go-bc5b194813d1a59daec29bd81f6bc092948a2f0a.tar.xz | |
all: update vendored golang.org/x/net
Pull in CL 483375. This also updates golang.org/x/sys to v0.7.0 and thus
we also need to update it to that version in cmd to keep
TestDependencyVersionsConsistent happy.
Fixes #22927
Change-Id: Ice14cd66a5c2a621b373c3d29455c75494436045
Reviewed-on: https://go-review.googlesource.com/c/go/+/483595
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/net/http/socks_bundle.go')
| -rw-r--r-- | src/net/http/socks_bundle.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/http/socks_bundle.go b/src/net/http/socks_bundle.go index e446669589..776b03d941 100644 --- a/src/net/http/socks_bundle.go +++ b/src/net/http/socks_bundle.go @@ -445,7 +445,7 @@ func (up *socksUsernamePassword) Authenticate(ctx context.Context, rw io.ReadWri case socksAuthMethodNotRequired: return nil case socksAuthMethodUsernamePassword: - if len(up.Username) == 0 || len(up.Username) > 255 || len(up.Password) == 0 || len(up.Password) > 255 { + if len(up.Username) == 0 || len(up.Username) > 255 || len(up.Password) > 255 { return errors.New("invalid username/password") } b := []byte{socksauthUsernamePasswordVersion} |
