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

only write the opening '[' after the first object is received #44

Merged
merged 1 commit into from Feb 25, 2015

Conversation

neonstalwart
Copy link
Member

i have an issue only in IE11 where i'm using long-polling for messages/json content and when the request times out i get responses containing [ instead of an empty response. i think https://github.com/persvr/pintura/blob/master/media/json.js#L31-L37 is the cause and i'm wondering if write("[") should be inside the if(first) block. the first variable there seems to imply that might be the intention and it's not doing anything else.

this PR makes that change.

kriszyp added a commit that referenced this pull request Feb 25, 2015
only write the opening '[' after the first object is received
@kriszyp kriszyp merged commit c262939 into persvr:master Feb 25, 2015
@neonstalwart neonstalwart deleted the first-write branch February 25, 2015 23:13
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.

None yet

2 participants