aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorame <[email protected]>2024-02-15 15:20:58 -0600
committerame <[email protected]>2024-02-15 15:20:58 -0600
commit93e16534bfbc0f52f7c453b399b583b0a02cbf87 (patch)
treeebe0d997186d7a055eb2e093ad70809fa9fd4c2a /src
parente9e6344364d1e84c3e079d40c9749631912751ac (diff)
yeah dont do that
Diffstat (limited to 'src')
-rw-r--r--src/net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net.c b/src/net.c
index 7214c51..2768ab9 100644
--- a/src/net.c
+++ b/src/net.c
@@ -395,7 +395,7 @@ void* handle_client(void *_arg){
sprintf(portc, "%i", args->port);
str* aa = str_init(portc);
- if(table[k]->c[table[k]->len - 1] != '/') str_push(table[k], "/");
+ //if(table[k]->c[table[k]->len - 1] != '/') str_push(table[k], "/");
str_push(aa, table[k]->c);
//if(aa->c[aa->len - 1] != '/') str_push(aa, "/");
@@ -571,7 +571,7 @@ int l_req_com(lua_State* L, char* req){
sprintf(portc, "%i", port);//, lua_tostring(L, 2));
str* portss = str_init(portc);
str_push(portss, (char*)lua_tostring(L, 2));
- if(portss->c[portss->len - 1] != '/') str_push(portss, "/");
+ //if(portss->c[portss->len - 1] != '/') str_push(portss, "/");
struct lchar* awa;
lua_getglobal(L, "string");