From f39e1a6cb6be52a711d8f1310933a0c1a887f233 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Sun, 27 Dec 2020 23:58:59 +0100 Subject: [PATCH] Code Cleanup --- src/client.c | 13 ------------- src/uri.c | 1 - 2 files changed, 14 deletions(-) diff --git a/src/client.c b/src/client.c index be94cec..9c5813b 100644 --- a/src/client.c +++ b/src/client.c @@ -129,19 +129,6 @@ int client_request_handler(sock *client, unsigned long client_num, unsigned int goto respond; } - /* - print("webroot: %s", uri.webroot); - print("req_path: %s", uri.req_path); - print("path: %s", uri.path); - print("pathinfo: %s", uri.pathinfo); - print("query: %s", uri.query); - print("filename: %s", uri.filename); - print("filename_comp: %s", uri.filename_comp); - print("uri: %s", uri.uri); - print("is_static: %i", uri.is_static); - print("is_dir: %i", uri.is_dir); - */ - ssize_t size = sizeof(buf0); url_decode(req.uri, buf0, &size); int change_proto = strncmp(uri.uri, "/.well-known/", 13) != 0 && !client->enc; diff --git a/src/uri.c b/src/uri.c index 36a6cc3..fb57f8e 100644 --- a/src/uri.c +++ b/src/uri.c @@ -28,7 +28,6 @@ int uri_init(http_uri *uri, const char *webroot, const char *uri_str, int dir_mo char buf1[1024]; char buf2[1024]; char buf3[1024]; - char buf4[1024]; uri->webroot = NULL; uri->req_path = NULL; uri->path = NULL;