Skip to content

Commit

Permalink
Merge pull request #47 from nlnwa/fixes
Browse files Browse the repository at this point in the history
* Fixed error when reading: Skipped too few bytes between records
  • Loading branch information
johnerikhalse authored Oct 22, 2021
2 parents 7b48182 + bc92dcf commit eb23d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unmarshaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (u *unmarshaler) Unmarshal(b *bufio.Reader) (WarcRecord, int64, *Validation

// Discarding 2 bytes which makes up the end of record marker (\r\n)
// TODO: validate that record ends with correct marker
_, _ = r.Discard(2)
_, _ = r.Discard(4)
if isGzip {
// Empty gzip reader to ensure gzip checksum is validated
b := make([]byte, 10)
Expand Down

0 comments on commit eb23d67

Please sign in to comment.