class EventMachine::Protocols::HttpClient2::Request
def receive_header_line ln
Allow no more than 100 lines in the header.
Allow up to ten blank lines before we get a real response line.
--
def receive_header_line ln if ln.length == 0 if @header_lines.length > 0 process_header else @blanks += 1 if @blanks > 10 @conn.close_connection end end else @header_lines << ln if @header_lines.length > 100 @internal_error = :bad_header @conn.close_connection end end end