Commit a3979dc5 authored by keks's avatar keks

http: call preamble on re.Close()

parent 1605bcfe
...@@ -130,6 +130,7 @@ func (re *responseEmitter) SetLength(l uint64) { ...@@ -130,6 +130,7 @@ func (re *responseEmitter) SetLength(l uint64) {
} }
func (re *responseEmitter) Close() error { func (re *responseEmitter) Close() error {
re.once.Do(func() { re.preamble(nil) })
// can't close HTTP connections // can't close HTTP connections
return nil return nil
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment