d2c8824902
This reverts commit 82651985c4
.
18 lines
308 B
Go
18 lines
308 B
Go
package accesslog
|
|
|
|
import "io"
|
|
|
|
type captureRequestReader struct {
|
|
source io.ReadCloser
|
|
count int64
|
|
}
|
|
|
|
func (r *captureRequestReader) Read(p []byte) (int, error) {
|
|
n, err := r.source.Read(p)
|
|
r.count += int64(n)
|
|
return n, err
|
|
}
|
|
|
|
func (r *captureRequestReader) Close() error {
|
|
return r.source.Close()
|
|
}
|