ronin-rb / ronin-app

A local web interface for Ronin.
https://ronin-rb.dev
GNU Affero General Public License v3.0
26 stars 8 forks source link

Fix parsing of HTTP header text in `Validations::HTTPParams` #131

Closed postmodern closed 4 months ago

postmodern commented 4 months ago

The Validations::HTTPParams HTTP Header parser logic should be able to handle the following header text:

X-Foo: foo
X-Bar: bar
{"X-Foo"=>"foo", "X-Bar"=>"bar"}
X-Foo: foo1
X-Foo: foo2
X-Bar: bar
{"X-Foo"=>["foo1", "foo2"], "X-Bar"=>"bar"}
postmodern commented 4 months ago

Fixed by bc7e92b and 1e4700b825147a40d0a3c93972ca960e57499aae.