if (strstr(tmp, "HTTP/1.1"))
conn->keepalive = TRUE;
if (strstr(tmp, "HTTP/1.2"))
- conn->keepalive = TRUE;
+ conn->keepalive = TRUE;
/* Get HTTP headers */
tmp = memchr(tmp, '\0', data_len - (tmp - data));
silc_mime_add_field(conn->headers, "Last-Modified",
silc_time_string(conn->touched));
- snprintf(tmp, sizeof(tmp), "%d", (int)silc_buffer_len(data));
+ silc_snprintf(tmp, sizeof(tmp), "%d", (int)silc_buffer_len(data));
silc_mime_add_field(conn->headers, "Content-Length", tmp);
if (conn->keepalive) {
silc_mime_add_field(conn->headers, "Connection", "keep-alive");
- snprintf(tmp, sizeof(tmp), "%d", (int)SILC_HTTP_SERVER_TIMEOUT);
+ silc_snprintf(tmp, sizeof(tmp), "%d", (int)SILC_HTTP_SERVER_TIMEOUT);
silc_mime_add_field(conn->headers, "Keep-alive", tmp);
}