Skip to content

Conversation

@ioquatix
Copy link
Member

@ioquatix ioquatix commented Aug 20, 2024

Using IO.copy_stream with a Protocol::HTTP::Body::Stream fails because readpartial doesn't take the "outbuf" argument. Let's fix that.

Fixes #62.

Types of Changes

  • Bug fix.

Contribution

@madleech
Copy link

Tested locally with my repo in #62 and it starts the upload process, but never completes. Seems to stall while reading? Tested with 1 byte file and 20MB file, same result.

@ioquatix ioquatix merged commit 9e33894 into main Aug 21, 2024
@ioquatix ioquatix deleted the more-compatible-read_partial branch August 21, 2024 02: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.

ArgumentError: wrong number of arguments when copying stream

3 participants