mirror of https://github.com/golang/go.git
Update server.go
This commit is contained in:
parent
0b667ac94e
commit
080cc9f6a7
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue