commit | ba5e308ea9496e4be0bd8c59a5291359e0ea98b4 | [log] [tgz] |
---|---|---|
author | Damien Mathieu <42@dmathieu.com> | Thu Feb 22 08:17:15 2018 +0000 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Wed Aug 22 02:03:14 2018 +0000 |
tree | 1cbc584b13ee6222a5a2f358319bc1b4e5617251 | |
parent | 4d6ae73dfc5f0856e58aca2a892f27b2ab80b148 [diff] |
[release-branch.go1.10] net/http: lock the read-only mutex in shouldRedirect Since that method uses `mux.m`, we need to lock the mutex to avoid data races. Fixes #27129 Change-Id: I998448a6e482b5d6a1b24f3354bb824906e23172 Reviewed-on: https://go-review.googlesource.com/95775 Reviewed-by: Andrew Bonventre <andybons@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://golang.org/dl/.
After downloading a binary release, visit https://golang.org/doc/install or load doc/install.html in your web browser for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source or load doc/install-source.html in your web browser for source installation instructions.
Go is the work of hundreds of contributors. We appreciate your help!
To contribute, please read the contribution guidelines: https://golang.org/doc/contribute.html
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.