From 5484d1eceb21ce393298e026c7857a9ee2caabc7 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Sat, 12 Oct 2024 10:13:40 +1300 Subject: [PATCH] Explicitly require URI schemes. --- lib/async/http/endpoint.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/async/http/endpoint.rb b/lib/async/http/endpoint.rb index 614f1b0..e8579bf 100644 --- a/lib/async/http/endpoint.rb +++ b/lib/async/http/endpoint.rb @@ -14,6 +14,11 @@ require_relative "protocol/http" require_relative "protocol/https" +require "uri" + +# Compatibility with Ruby 3.1.2 +require "uri/wss" + module Async module HTTP # Represents a way to connect to a remote HTTP server.