From f31feaac676dee9d99f8a0e23b8661868b49ac5e Mon Sep 17 00:00:00 2001 From: Alex Burgel Date: Mon, 25 Nov 2024 10:01:32 -0500 Subject: [PATCH] Add host authorization config for sinatra 4.1 (#82) --- Gemfile.lock | 1 + lib/webvalve/fake_service.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/Gemfile.lock b/Gemfile.lock index fa67b98..3769875 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -247,6 +247,7 @@ GEM PLATFORMS arm64-darwin-22 arm64-darwin-23 + arm64-darwin-24 x86_64-darwin-22 x86_64-linux diff --git a/lib/webvalve/fake_service.rb b/lib/webvalve/fake_service.rb index a4247d5..fe6fc8d 100644 --- a/lib/webvalve/fake_service.rb +++ b/lib/webvalve/fake_service.rb @@ -8,6 +8,7 @@ class FakeService < Sinatra::Base set :dump_errors, false set :show_exceptions, false set :raise_errors, true + set :host_authorization, ->() { {} } configure do use Instrumentation::Middleware