main/task_http.c

changeset 93
24cb415af787
parent 91
255a75322212
child 94
87aa80b8e452
--- a/main/task_http.c	Mon May 17 22:38:43 2021 +0200
+++ b/main/task_http.c	Tue May 18 16:52:23 2021 +0200
@@ -192,6 +192,7 @@
      * If we have a If-Modified-Since parameter, compare that with the current
      * filedate on disk. If It's the same send a 304 response.
      * Cannot work on /spiffs.
+     * Update 18-05-2021 it seems better on idf 4.2.1 but still not correct.
      */
 #if 0
     time_t    Now;
@@ -202,7 +203,7 @@
 	strftime(strftime_buf, sizeof(strftime_buf), "%a, %d %b %Y %T %z", &timeInfo);
 	sprintf(header, "HTTP/1.1 304 Not Modified\r\nDate: %s\r\n\r\n", strftime_buf);
 	netconn_write(conn, header, strlen(header), NETCONN_NOCOPY);
-	ESP_LOGI(TAG, "http_sendfile %s Not Modified, ok", temp_url);
+	ESP_LOGI(TAG, "%s sendfile %s Not Modified, ok", ipstr, temp_url);
 	return;
     }
 #endif

mercurial