diff options
| author | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
|---|---|---|
| committer | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
| commit | 2e80774d0b20d167bc0a9e2b63dafbfb171c0d22 (patch) | |
| tree | 25f0138e1af8902b92dacc8cce09b267447c17db /www/rubygem-ethon-gitlab/files/patch-typhoeus | |
| parent | f85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (diff) | |
| parent | 1a30da80670973368b399f2b01fe9c04b91a1273 (diff) | |
Merge remote-tracking branch 'freebsd/main' into lf/mainlf/main
Diffstat (limited to 'www/rubygem-ethon-gitlab/files/patch-typhoeus')
| -rw-r--r-- | www/rubygem-ethon-gitlab/files/patch-typhoeus | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/www/rubygem-ethon-gitlab/files/patch-typhoeus b/www/rubygem-ethon-gitlab/files/patch-typhoeus new file mode 100644 index 000000000000..0ce1d896cd3c --- /dev/null +++ b/www/rubygem-ethon-gitlab/files/patch-typhoeus @@ -0,0 +1,18 @@ +Obtained from: https://github.com/typhoeus/ethon/commit/4a1700c2856de9e139cbd2c91a787c1ff88edd36 +Reference: https://github.com/typhoeus/typhoeus/issues/739 + +--- lib/ethon/easy/callbacks.rb.orig 2025-10-05 21:07:34 UTC ++++ lib/ethon/easy/callbacks.rb +@@ -37,10 +37,10 @@ module Ethon + # @return [ Proc ] The callback. + def body_write_callback + @body_write_callback ||= proc do |stream, size, num, object| +- headers ++ headers_user_callback_result = headers + result = body(chunk = stream.read_string(size * num)) + @response_body << chunk if result == :unyielded +- result != :abort ? size * num : -1 ++ (result != :abort && headers_user_callback_result != :abort) ? size * num : -1 + end + end + |
