Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

content compression fixed #664

Merged
merged 3 commits into from
Jul 30, 2015
Merged

content compression fixed #664

merged 3 commits into from
Jul 30, 2015

Conversation

markusstoll
Copy link
Contributor

never worked properly

…ytesNoCopy gives you the complete buffer not only the valid content. So you get trash appended to your pages content.
@prabier
Copy link

prabier commented Jul 30, 2015

Hi Markus,

Why did you change log.debug with System.out.println? (last modification).

Philippe

@markusstoll
Copy link
Contributor Author

thanks for bringing this up, this was changed just for testing purposes, I forgot to rollback this. fixed by now

compressedData = ERXCompressionUtilities.gzipByteArrayAsNSData(input._bytesNoCopy(), 0, (int)inputBytesLength);
} else
{
compressedData = new NSData();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could use the constant NSData.EmptyData instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i changed this to NSData.EmptyData

darkv added a commit that referenced this pull request Jul 30, 2015
content compression fixed
@darkv darkv merged commit 41b320a into wocommunity:master Jul 30, 2015
@markusstoll markusstoll deleted the gzip branch June 30, 2016 13:05
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.

4 participants