Skip to content

Commit

Permalink
fixed nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
g0ku704 authored and elazarl committed Jul 31, 2023
1 parent e077959 commit f99041a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion https.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func (proxy *ProxyHttpServer) handleHttps(w http.ResponseWriter, r *http.Request
return
}
if err != nil {
if req != nil {
if req.URL != nil {
ctx.Warnf("Illegal URL %s", "https://"+r.Host+req.URL.Path)
} else {
ctx.Warnf("Illegal URL %s", "https://"+r.Host)
Expand Down

0 comments on commit f99041a

Please sign in to comment.