/usr/lib/ruby/vendor_ruby/http_parser.rb is in ruby-http-parser.rb 0.6.0~beta.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | require 'ruby_http_parser'
Http = HTTP
module HTTP
class Parser
class << self
attr_reader :default_header_value_type
def default_header_value_type=(val)
if (val != :mixed && val != :strings && val != :arrays)
raise ArgumentError, "Invalid header value type"
end
@default_header_value_type = val
end
end
end
end
HTTP::Parser.default_header_value_type = :mixed
|