Skip to content

Add Faraday Typhoeus adapter for HTTP/2 support#1238

Merged
akabishau merged 4 commits intodevfrom
fix-connection-issue-with-ctogov-api
Oct 20, 2025
Merged

Add Faraday Typhoeus adapter for HTTP/2 support#1238
akabishau merged 4 commits intodevfrom
fix-connection-issue-with-ctogov-api

Conversation

@akabishau
Copy link
Collaborator

Updated Faraday to version 2.8 and added the faraday-typhoeus gem to enable HTTP/2 support and better mimic curl behavior, bypassing WAF/bot detection. Modified HttpClient to use the Typhoeus adapter. Updated Gemfile and Gemfile.lock dependencies accordingly.

Updated Faraday to version 2.8 and added the faraday-typhoeus gem to enable HTTP/2 support and better mimic curl behavior, bypassing WAF/bot detection. Modified HttpClient to use the Typhoeus adapter. Updated Gemfile and Gemfile.lock dependencies accordingly.
A new step was added to update RubyGems before installing the PostgreSQL client in the build-and-test-not-master GitHub Actions workflow. This ensures the latest RubyGems system is used during CI runs.
@akabishau akabishau force-pushed the fix-connection-issue-with-ctogov-api branch from 630d703 to ca9f862 Compare October 20, 2025 21:37
Pinned the ffi gem to versions below 1.17.0 for compatibility with Ruby 2.7.7 and RubyGems 3.1.6. Updated the GitHub Actions workflow to enable bundler cache and removed the manual RubyGems update step.
Changed the 'User-Agent' header from Faraday v2.1.0 to v2.8.1 in multiple spec files to reflect the updated Faraday version. Also updated expected error in http_client_spec.rb from ConnectionFailed to TimeoutError for improved accuracy in test assertions.
@akabishau akabishau merged commit ee6d9db into dev Oct 20, 2025
1 check passed
@akabishau akabishau deleted the fix-connection-issue-with-ctogov-api branch October 20, 2025 22:39
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.

1 participant