diff options
| author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2025-10-13 06:25:50 +0000 |
|---|---|---|
| committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2025-10-13 06:25:50 +0000 |
| commit | b6293aea54d946456f8a683610fb6626a009583e (patch) | |
| tree | 909d211f67bbeb8341372afda04df02085aef0b5 | |
| parent | 22a988364a4dd1dd89da6f1900ee28510a038e3f (diff) | |
www/rubygem-ethon: Import upstream patch
- Bump PORTREVISION for package change
Obtained from: https://github.com/typhoeus/ethon/commit/4a1700c2856de9e139cbd2c91a787c1ff88edd36
Reference: https://github.com/typhoeus/typhoeus/issues/739
| -rw-r--r-- | www/rubygem-ethon/Makefile | 1 | ||||
| -rw-r--r-- | www/rubygem-ethon/files/patch-typhoeus | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/www/rubygem-ethon/Makefile b/www/rubygem-ethon/Makefile index b5932abf475d..11c8486464ca 100644 --- a/www/rubygem-ethon/Makefile +++ b/www/rubygem-ethon/Makefile @@ -1,5 +1,6 @@ PORTNAME= ethon PORTVERSION= 0.17.0 +PORTREVISION= 1 CATEGORIES= www rubygems MASTER_SITES= RG diff --git a/www/rubygem-ethon/files/patch-typhoeus b/www/rubygem-ethon/files/patch-typhoeus new file mode 100644 index 000000000000..0ce1d896cd3c --- /dev/null +++ b/www/rubygem-ethon/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 + |
