class CGI

def _header_for_string(content_type) #:nodoc:

:nodoc:
def _header_for_string(content_type) #:nodoc:
  buf = ''.dup
  if nph?()
    buf << "#{_no_crlf_check($CGI_ENV['SERVER_PROTOCOL']) || 'HTTP/1.0'} 200 OK#{EOL}"
    buf << "Date: #{CGI.rfc1123_date(Time.now)}#{EOL}"
    buf << "Server: #{_no_crlf_check($CGI_ENV['SERVER_SOFTWARE'])}#{EOL}"
    buf << "Connection: close#{EOL}"
  end
  buf << "Content-Type: #{_no_crlf_check(content_type)}#{EOL}"
  if @output_cookies
    @output_cookies.each {|cookie| buf << "Set-Cookie: #{_no_crlf_check(cookie)}#{EOL}" }
  end
  return buf
end # _header_for_string