net-http2 icon indicating copy to clipboard operation
net-http2 copied to clipboard

Using symbol keys in the headers hash causes error: comparison of Array with Array failed (ArgumentError)

Open Inversion-des opened this issue 2 years ago • 0 comments

This sample response = client.call(:get, '/', headers: { 'x-custom': 'custom' }) fails with the error: gems/net-http2-0.18.5/lib/net-http2/request.rb:43:in 'sort': comparison of Array with Array failed (ArgumentError)

Workaround: use only strings as keys ('x-custom' => 'custom')

Inversion-des avatar Jul 31 '23 21:07 Inversion-des