cgicc-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Cgicc-help] Why cgicc not use "\r\n" for http header but std::endl?


From: ????
Subject: [Cgicc-help] Why cgicc not use "\r\n" for http header but std::endl?
Date: Thu, 22 Dec 2016 17:11:37 +0800

The standard is "\r\n", why use std::endl?

void cgicc::HTTPContentHeader::render(std::ostream& out) const
{
  out << "Content-Type: " << getData() << std::endl; // "\r\n"
  
  std::vector<HTTPCookie>::const_iterator iter; 
  for(iter = getCookies().begin(); iter != getCookies().end(); ++iter)
    out << *iter << std::endl; // "\r\n"
  
  out << std::endl; // "\r\n"
}



------------------
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]