Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@i2h3
Copy link
Collaborator

@i2h3 i2h3 commented Oct 15, 2025

When downloading zero byte files previously, the responseData handler raises an error while the plain response handler meant for file downloads does not.

When downloading zero byte files previously, the responseData handler raises an error while the plain response handler meant for file downloads does not.

Signed-off-by: Iva Horn <[email protected]>
@i2h3 i2h3 self-assigned this Oct 15, 2025
@i2h3 i2h3 added the bug Something isn't working label Oct 15, 2025
@github-project-automation github-project-automation bot moved this to 🧭 Planning evaluation (don't pick) in 💻 Desktop Clients team Oct 15, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses issue #195 by fixing a zero-byte download handling issue. The problem occurred when downloading empty files - the responseData handler would raise an error while the plain response handler works correctly for file downloads regardless of size.

Key Changes:

  • Replaced responseData handler with response handler for download completion handling
  • Changed error handling from switch statement to if-let pattern matching

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@i2h3 i2h3 requested a review from Ivansss October 15, 2025 14:01
@i2h3 i2h3 merged commit e2ec80e into main Oct 15, 2025
4 checks passed
@github-project-automation github-project-automation bot moved this from 🧭 Planning evaluation (don't pick) to ☑️ Done in 💻 Desktop Clients team Oct 15, 2025
@i2h3 i2h3 deleted the fix/zero-byte-downloads branch October 15, 2025 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants