aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoramelia squires <[email protected]>2024-09-11 00:02:58 -0500
committeramelia squires <[email protected]>2024-09-11 00:02:58 -0500
commit7c757e7ca41cacd1505622dcb48e5657364aa714 (patch)
treea7be74c163b8395be0dd96d2ccf84c6043939ea2 /src
parentbd405bc6f3104ba7c6d41c42561975d73fd81134 (diff)
stupid code
Diffstat (limited to 'src')
-rw-r--r--src/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.c b/src/net.c
index 260657a..66f2a3d 100644
--- a/src/net.c
+++ b/src/net.c
@@ -201,7 +201,7 @@ void* handle_client(void *_arg){
struct lchar* wowa = awa->cs[z];
//if request is HEAD, it is valid for GET and HEAD listeners
if(strcmp(wowa->req, "all") == 0 || strcmp(wowa->req, sR->c) == 0 ||
- (strcmp(sR->c, "HEAD") && strcmp(wowa->req, "GET"))){
+ (strcmp(sR->c, "HEAD") == 0 && strcmp(wowa->req, "GET") == 0)){
luaL_loadbuffer(L, wowa->c, wowa->len, "fun");
int func = lua_gettop(L);