lib/httpx/altsvc.rb in httpx-1.1.2 vs lib/httpx/altsvc.rb in httpx-1.1.3
- old
+ new
@@ -2,10 +2,10 @@
require "strscan"
module HTTPX
module AltSvc
- @altsvc_mutex = Mutex.new
+ @altsvc_mutex = Thread::Mutex.new
@altsvcs = Hash.new { |h, k| h[k] = [] }
module_function
def cached_altsvc(origin)