Skip to content

Commit

Permalink
fix: panic when calling .SetLength for writerResponseEmitter
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Aug 22, 2023
1 parent a3fccea commit e90800a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (re *writerResponseEmitter) SetLength(length uint64) {
return
}

*re.length = length
re.length = &length

Check warning on line 135 in writer.go

View check run for this annotation

Codecov / codecov/patch

writer.go#L135

Added line #L135 was not covered by tests
}

func (re *writerResponseEmitter) Close() error {
Expand Down

0 comments on commit e90800a

Please sign in to comment.