Code Cleanup

This commit is contained in:
2020-12-27 23:58:59 +01:00
parent c708633197
commit f39e1a6cb6
2 changed files with 0 additions and 14 deletions

View File

@ -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;

View File

@ -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;