Make keep_alive() a macro instead of a tiny function.

This commit is contained in:
Emil Mikulic 2003-11-22 13:16:13 +00:00
parent df4f6910de
commit 5563889b66

View File

@ -265,13 +265,9 @@ static const char default_mimetype[] = "application/octet-stream";
/* --------------------------------------------------------------------------- /* Connection or Keep-Alive field, depending on conn_close. */
* Returns Connection or Keep-Alive field, depending on conn_close. #define keep_alive(conn) ((conn)->conn_close ? \
*/ "Connection: close\r\n" : keep_alive_field)
static const char *keep_alive(const struct connection *conn)
{
return (conn->conn_close ? "Connection: close\r\n" : keep_alive_field);
}