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-length returns "0" when charset is set to other than "utf-8" #85

Closed
Musiksammler opened this issue Jan 19, 2017 · 1 comment
Closed

Comments

@Musiksammler
Copy link

I had the problem, that I had to set the charset for vcards to "ISO-8859-1". And every data that was set into the vcard was converted using "utf8_decode".

On my development machine everything worked as expected but on the real server the downloaded vcards where just empty.

The reason is, that in "getHeaders($asAssociative)" the "strlen($this->getOutput())" call returns "0" for some reason.

Musiksammler pushed a commit to Musiksammler/vcard that referenced this issue Jan 19, 2017
jeroendesloovere added a commit that referenced this issue Feb 14, 2017
#85: fix for getting the correct content-length
@jeroendesloovere
Copy link
Owner

Closing because this will be fixed by #86

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

No branches or pull requests

2 participants