mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Make keep_alive() a macro instead of a tiny function.
This commit is contained in:
parent
df4f6910de
commit
5563889b66
@ -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);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user