Merge pull request #373 from tsandall/master
Fix delegator return value for single hijacker
This commit is contained in:
commit
ebe4271dac
|
@ -115,7 +115,7 @@ func init() {
|
||||||
}{d, &flusherDelegator{d}, &closeNotifierDelegator{d}}
|
}{d, &flusherDelegator{d}, &closeNotifierDelegator{d}}
|
||||||
}
|
}
|
||||||
pickDelegator[hijacker] = func(d *responseWriterDelegator) delegator { // 4
|
pickDelegator[hijacker] = func(d *responseWriterDelegator) delegator { // 4
|
||||||
return hijackerDelegator{d}
|
return &hijackerDelegator{d}
|
||||||
}
|
}
|
||||||
pickDelegator[hijacker+closeNotifier] = func(d *responseWriterDelegator) delegator { // 5
|
pickDelegator[hijacker+closeNotifier] = func(d *responseWriterDelegator) delegator { // 5
|
||||||
return struct {
|
return struct {
|
||||||
|
|
Loading…
Reference in New Issue