Added preliminary Symbian support.
[silc.git] / lib / silchttp / silchttpserver.c
index 6ff809bfcd0f5d6b42753be6b5e3e2177ab65a9b..ed01beaed1d546a91c74eba09090f9b7d8de91b5 100644 (file)
@@ -151,7 +151,7 @@ static SilcBool silc_http_server_parse(SilcHttpServer httpd,
     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));
@@ -547,11 +547,11 @@ SilcBool silc_http_server_send(SilcHttpServer httpd,
 
   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);
   }