ostinelli / net-http2

NetHttp2 is an HTTP/2 client for Ruby.
MIT License
141 stars 31 forks source link

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

Open Inversion-des opened 1 year ago

Inversion-des commented 1 year ago

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')