From 75118f5169bc9d64bffeef98098d930a9582526f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20=C5=A0im=C3=A1nek?= Date: Sun, 8 Jun 2025 16:14:06 +0200 Subject: [PATCH 1/2] Run CI for master branch push and PRs. --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 860eb47c7..6b75529d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,11 @@ name: Build -"on": push +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] env: CUCUMBER_PUBLISH_QUIET: true From bb36f5d315c4fece8436d7a05f38d3d0833d7e27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Thu, 19 Jun 2025 10:36:15 +0200 Subject: [PATCH 2/2] Disable `Rack::Protection::HostAuthorization` Rack::Protection 4.1.0 has introduced new `Rack::Protection::HostAuthorization` [[1]]. This makes `www.example.com` host to be rejected. The easiest solution is to disable this check for the TestApp. [1]: https://github.com/sinatra/sinatra/pull/2053 --- lib/capybara/spec/test_app.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/capybara/spec/test_app.rb b/lib/capybara/spec/test_app.rb index b29a1523c..eabb2a8ea 100644 --- a/lib/capybara/spec/test_app.rb +++ b/lib/capybara/spec/test_app.rb @@ -19,6 +19,7 @@ def initialize(string1, msg) set :static, true set :raise_errors, true set :show_exceptions, false + set :host_authorization, { permitted_hosts: [] } # Also check lib/capybara/spec/views/*.erb for pages not listed here