i'm learning ror , building application. have specific need @ incoming requests' http versions , respond accordingly. i've read says should able access via request.headers["http_version"], yet when access in controller action, it's "http/1.1" regardless of request sent.
i'm testing manually forging http requests using burp repeater 'curl -0 http://whatever/etc'. know requests going out http/1.0 ruby shows http/1.1 when "puts request.inspect" or "puts request["http_version"].
can explain behavior? there way access request line right out of request? if split on '/' , grab last array element.
Comments
Post a Comment