bugsnag / bugsnag-go

Automatic panic monitoring for Go and Go web frameworks, like negroni, gin, and revel
https://docs.bugsnag.com/platforms/go
MIT License
203 stars 69 forks source link

fix middleware panic on nil *http.Request #210

Closed bohdantrotsenko closed 6 months ago

bohdantrotsenko commented 6 months ago

Goal

Currently bugsnag's middleware panics on nil *http.Request

https://go.dev/play/p/5EkLul6ay5y?v=goprev

Design

Changeset

Testing

This was observed on another project using bugsnag.

mclack commented 6 months ago

Hi @bohdantrotsenko

The PR you raised here has been added as a commit to a separate PR, and this fix is now available in the latest version of bugsnag-go: https://github.com/bugsnag/bugsnag-go/releases/tag/v2.2.1

Thank you for your contribution. Please upgrade to v2.2.1 at your earliest convenience, and let us know if you notice any more issues!