Content-Length: 280567 | pFad | http://github.com/importcpp/WebServer/commit/26d45bfc099070750315ec7798a272fa89547868

20 optimize code · importcpp/WebServer@26d45bf · GitHub
Skip to content

Commit 26d45bf

Browse files
committed
optimize code
1 parent 9062676 commit 26d45bf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

webserver/http/KIcons.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22
#include <string>
3-
extern char favicon[555] = {
3+
4+
static char favicon[555] = {
45
'\x89', 'P', 'N', 'G', '\xD', '\xA', '\x1A', '\xA',
56
'\x0', '\x0', '\x0', '\xD', 'I', 'H', 'D', 'R',
67
'\x0', '\x0', '\x0', '\x10', '\x0', '\x0', '\x0', '\x10',
@@ -71,6 +72,4 @@ extern char favicon[555] = {
7172
'\xBB', '\xF8', '\xD6', '\x2A', 'v', '\x98', 'I', '\x0',
7273
'\x0', '\x0', '\x0', 'I', 'E', 'N', 'D', '\xAE',
7374
'B', '\x60', '\x82',
74-
};
75-
76-
std::string Error404 = "HTTP/1.1 404 Not Found!\r\nContent-Length: 14\r\nConnection: close\r\nContent-Type: text/plain\r\nServer: Webserver\r\n\r\n404 Not Found!\n";
75+
};

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/importcpp/WebServer/commit/26d45bfc099070750315ec7798a272fa89547868

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy