aboutsummaryrefslogtreecommitdiff
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
commitdbf438f04dac63f2a32743fded1b7fbf02ed636b (patch)
treea7be74c163b8395be0dd96d2ccf84c6043939ea2
parentf776ebf34442e0ac6dfc46afd5ac47793db82ac3 (diff)
stupid code
-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);