Skip to content

Instantly share code, notes, and snippets.

@Dan-Do
Dan-Do / patch.cr
Created June 9, 2021 17:04
patch core crystal code
class HTTP::Server::RequestProcessor
def process(input, output) : Nil
response = Response.new(output)
begin
until @wants_close
request = HTTP::Request.from_io(
input,
max_request_line_size: max_request_line_size,
max_headers_size: max_headers_size,