Skip to content

Commit

Permalink
Close non persistent connection after first request
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikPelli committed Dec 20, 2024
1 parent fc6b7da commit 241e240
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions https.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,11 @@ func (proxy *ProxyHttpServer) handleHttps(w http.ResponseWriter, r *http.Request
return
}
}

if ctx.Req.Close {
ctx.Logf("Non-persistent connection; closing")
return
}
}
ctx.Logf("Exiting on EOF")
}()
Expand Down

0 comments on commit 241e240

Please sign in to comment.