Update server.go

This commit is contained in:
Charlie Getzen 2021-10-15 10:12:56 -05:00 committed by GitHub
parent 0b667ac94e
commit 080cc9f6a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3420,7 +3420,7 @@ func (tw *timeoutWriter) writeHeaderLocked(code int) {
checkWriteHeaderCode(code)
switch {
case tw.timedOut:
case tw.timedOut, tw.clientHangup:
return
case tw.wroteHeader:
if tw.req != nil {