diff options
| author | amelia squires <[email protected]> | 2024-09-11 00:02:58 -0500 |
|---|---|---|
| committer | amelia squires <[email protected]> | 2024-09-11 00:02:58 -0500 |
| commit | dbf438f04dac63f2a32743fded1b7fbf02ed636b (patch) | |
| tree | a7be74c163b8395be0dd96d2ccf84c6043939ea2 | |
| parent | f776ebf34442e0ac6dfc46afd5ac47793db82ac3 (diff) | |
stupid code
| -rw-r--r-- | src/net.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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);
|
