]> Git repositories of Nishi - tewi.git/commitdiff
fix doctype, and add viewport
authorNishi <nishi@nishi.boats>
Sun, 22 Sep 2024 13:27:20 +0000 (13:27 +0000)
committerNishi <nishi@nishi.boats>
Sun, 22 Sep 2024 13:27:20 +0000 (13:27 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@122 8739d7e6-ffea-ec47-b151-bdff447c6205

Server/server.c
Server/tw_version.h

index 1a25db653717dcafcebf794b0e048967aefa361d..43516152e523c11ba656b409e0ec18c7a164d245 100644 (file)
@@ -606,10 +606,11 @@ int32_t tw_server_pass(void* ptr) {
                                                        char* str = malloc(1);
                                                        str[0] = 0;
                                                        char** items = cm_scandir(path);
-                                                       addstring(&str, "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n");
+                                                       addstring(&str, "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n");
                                                        addstring(&str, "<html>\n");
                                                        addstring(&str, "       <head>\n");
                                                        addstring(&str, "               <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n");
+                                                       addstring(&str, "               <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n");
                                                        addstring(&str, "               <title>Index of %h</title>\n", req.path);
                                                        addstring(&str, "       </head>\n");
                                                        addstring(&str, "       <body>\n");
index 0eedbf7b9a3da408828633319775304a5ba6ee2f..640f0dba1923377bc503dbd8c389ea78b5c0b0b7 100644 (file)
@@ -3,7 +3,7 @@
 #ifndef __TW_VERSION_H__
 #define __TW_VERSION_H__
 
-#define TW_VERSION "1.02\0"
+#define TW_VERSION "1.02A\0"
 
 const char* tw_get_version(void);
 const char* tw_get_platform(void);