Skip to content

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

@Inversion-des

Description

@Inversion-des

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions