Files
news.gitea.happylizard.me/bin/gems/http_parser.rb-0.8.0/lib/http_parser.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

22 lines
472 B
Ruby

$:.unshift File.expand_path('../', __FILE__)
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