lib/httpx/altsvc.rb in httpx-1.2.3 vs lib/httpx/altsvc.rb in httpx-1.2.4
- old
+ new
@@ -129,12 +129,12 @@
alt_param = scanner.scan(/[^=]+=("[^"]+"|[^;,]+)/)
alt_params << alt_param.strip if alt_param
scanner.skip(/;/)
break if scanner.eos? || scanner.scan(/ *, */)
end
- alt_params = Hash[alt_params.map { |field| field.split("=") }]
+ alt_params = Hash[alt_params.map { |field| field.split("=", 2) }]
- alt_proto, alt_authority = alt_service.split("=")
+ alt_proto, alt_authority = alt_service.split("=", 2)
alt_origin = parse_altsvc_origin(alt_proto, alt_authority)
return unless alt_origin
yield(alt_origin, alt_params.merge("proto" => alt_proto))
end