Skip to content

Conversation

@tiagoinaba
Copy link

string(gzippedData) does not guarantee a UTF-8 sanitized string, which may lead to corrupted data.

Also, returned the non-nil error from GetFromSession to make debugging easier and changed the test file to also encode the test data into base64.

I was getting gzip: invalid header in my app and upon inspection found the sequence 239 191 189 repeated many times across the gzipped data, including in the gzip header.

`string(gzippedData)` does not guarantee a UTF-8 sanitized string,
which may lead to corrupted data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant