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

Handle Cloudflare worker stream issue #27

Merged
merged 2 commits into from
Nov 29, 2023
Merged

Conversation

teralomaniac
Copy link
Contributor

Handle Cloudflare worker stream issue

  • Before: The original code checked for specific conditions in the buffer before attempting to parse and process JSON data.
  • After: The updated code splits the buffer into substrings at double line breaks and iterates through them, parsing and processing each substring individually. This ensures more robust handling of streamed data.

@teralomaniac teralomaniac changed the title Update cloudflare-worker.js Handle Cloudflare worker stream issue Nov 26, 2023
@jtsang4
Copy link
Owner

jtsang4 commented Nov 29, 2023

LGTM, great work!

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.

3 participants