ing
This commit is contained in:
parent
911e6ec1d7
commit
d3a86a8a34
|
@ -37,6 +37,10 @@ func (srwch *ServletReadWriteCloseHandlers) WriteResponse(servletCTX rpc.Servlet
|
||||||
return wErr
|
return wErr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
defer func() {
|
||||||
|
wc.Close()
|
||||||
|
}()
|
||||||
|
|
||||||
if nil != err {
|
if nil != err {
|
||||||
if wErr := requestCodec.WriteError(wc, 500, err); nil != wErr {
|
if wErr := requestCodec.WriteError(wc, 500, err); nil != wErr {
|
||||||
return wErr
|
return wErr
|
||||||
|
|
Loading…
Reference in New Issue
Block a user