elazarl / goproxy

An HTTP proxy library for Go
BSD 3-Clause "New" or "Revised" License
6.06k stars 1.1k forks source link

panic: runtime error: invalid memory address or nil pointer dereference #461

Closed comwrg closed 1 year ago

comwrg commented 2 years ago
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x44075b6]

goroutine 7731 [running]:
github.com/elazarl/goproxy.(*ProxyHttpServer).handleHttps.func2()
    github.com/elazarl/goproxy@v0.0.0-20211114080932-d06c3be7c11b/https.go:240 +0x7d6
created by github.com/elazarl/goproxy.(*ProxyHttpServer).handleHttps
    github.com/elazarl/goproxy@v0.0.0-20211114080932-d06c3be7c11b/https.go:190 +0x4b6

https://github.com/elazarl/goproxy/blob/master/https.go#L240