summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.zig7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main.zig b/src/main.zig
index f9c810c..1cf65e3 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -13,16 +13,11 @@ const mem = std.mem;
const bufferedReader = std.io.bufferedReader;
const getcwd = std.os.getcwd;
-const MAX_PATH_BYTES = fs.MAX_PATH_BYTES;
-
const server_addr = "127.0.0.1";
const server_port = 8080;
-
+const MAX_PATH_BYTES = fs.MAX_PATH_BYTES;
const BUFFER_LIMIT = 1 << 21;
-const resp = "HTTP/1.0 200 OK\r\nServer: zhttpd\r\nContent-type: text/html\r\n\r\n";
-const def = "<html>Hello, World</html>";
-
fn read_files(target: []const u8, buffer: []u8, allocator: mem.Allocator) !usize {
var file_path = try allocator.alloc(u8, MAX_PATH_BYTES);
defer allocator.free(file_path);