diff options
| author | ame <[email protected]> | 2024-02-15 15:20:58 -0600 |
|---|---|---|
| committer | ame <[email protected]> | 2024-02-15 15:20:58 -0600 |
| commit | 93e16534bfbc0f52f7c453b399b583b0a02cbf87 (patch) | |
| tree | ebe0d997186d7a055eb2e093ad70809fa9fd4c2a | |
| parent | e9e6344364d1e84c3e079d40c9749631912751ac (diff) | |
yeah dont do that
| -rw-r--r-- | src/net.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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");
|
