taf2 / curb

Ruby bindings for libcurl
Other
1.29k stars 229 forks source link

FIX: for callback function read_data_handler #453

Closed mtasaka closed 3 months ago

mtasaka commented 5 months ago

unify condition check for remaining vs read_bytes and remove unneeded branch, and fix return value as the result.

Fixes #451 .