WAF增加显示网页动作

This commit is contained in:
刘祥超
2021-10-25 19:42:12 +08:00
parent cd19a4a7bc
commit e89460e36f
5 changed files with 55 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ func (this *HTTPRequest) doWebsocket() {
}
clientConn, _, err := this.writer.Hijack()
if err != nil {
if err != nil || clientConn == nil {
this.write50x(err, http.StatusInternalServerError)
return
}