-
Notifications
You must be signed in to change notification settings - Fork 18.4k
net/http: clarify panic conditions in Handle, HandleFunc, AddInsecureBypassPattern #75297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…BypassPattern Add explicit mention that these methods panic on both pattern conflict and invalid syntax. - Handle and HandleFunc now note they panic if a pattern conflicts with an existing one or is syntactically invalid (e.g., malformed wildcard). - AddInsecureBypassPattern now similarly documents panic on conflicts and invalid patterns, bringing consistency and clarity. See issue golang#75226 for context and background. Fixes golang#75226
This PR (HEAD: 5608267) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/701016. Important tips:
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/701016. |
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/701016. |
Message from Sean Liao: Patch Set 1: (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/701016. |
Message from Cole Garien: Patch Set 1: (5 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/701016. |
This PR (HEAD: acc9a9c) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/701016. Important tips:
|
Message from Sean Liao: Patch Set 3: Auto-Submit+1 Code-Review+2 Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/701016. |
Message from Go LUCI: Patch Set 3: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2025-09-14T10:31:36Z","revision":"bda4da839cc56bde06b112892b1c9e33a8be4515"} Please don’t reply on this GitHub thread. Visit golang.org/cl/701016. |
Message from Sean Liao: Patch Set 3: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/701016. |
Message from Go LUCI: Patch Set 3: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/701016. |
Message from Go LUCI: Patch Set 3: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/701016. |
Message from Mark Freeman: Patch Set 3: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/701016. |
Message from Emmanuel Odeke: Patch Set 3: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/701016. |
…BypassPattern Add explicit mention that these methods panic on both pattern conflict and invalid syntax. Fixes #75226 Change-Id: If7dbfc44e1ec4624ab156f0e5d7e66cee2c2fef3 GitHub-Last-Rev: acc9a9c GitHub-Pull-Request: #75297 Reviewed-on: https://go-review.googlesource.com/c/go/+/701016 Reviewed-by: Michael Knyszek <[email protected]> Auto-Submit: Sean Liao <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Emmanuel Odeke <[email protected]> Reviewed-by: Sean Liao <[email protected]> Reviewed-by: Mark Freeman <[email protected]>
This PR is being closed because golang.org/cl/701016 has been merged. |
Add explicit mention that these methods panic on both pattern conflict
and invalid syntax.
Fixes #75226