diff --git a/src/smol-http-pthreads.c b/src/smol-http-pthreads.c index 5ef926a..8da138d 100644 --- a/src/smol-http-pthreads.c +++ b/src/smol-http-pthreads.c @@ -87,6 +87,7 @@ void *handle_request(void *param) { close(ssl); pthread_exit(0); } + printf("%s %s %s\n", path, method, proto); if (strcmp(method, "GET")) { send_response(ssl, "405 Method Not Allowed", "text/plain", "Method Not Allowed", 18); diff --git a/src/smol-http.c b/src/smol-http.c index 22ee04c..ee7c9aa 100644 --- a/src/smol-http.c +++ b/src/smol-http.c @@ -77,6 +77,7 @@ static void handle_request(int ssl, char *req) { send_response(ssl, "400 Bad Request", "text/plain", "Bad Request", 11); return; } + printf("%s %s %s\n", path, method, proto); if (strcmp(method, "GET")) { send_response(ssl, "405 Method Not Allowed", "text/plain", "Method Not Allowed", 18); diff --git a/src/smol-pthreads.c b/src/smol-pthreads.c index ab1ff9c..69d0373 100644 --- a/src/smol-pthreads.c +++ b/src/smol-pthreads.c @@ -93,6 +93,7 @@ void *handle_request(void *param) { close(client_sock); pthread_exit(0); } + printf("%s %s %s\n", path, method, proto); if (strcmp(method, "GET")) { send_response(ssl, "405 Method Not Allowed", "text/plain", "Method Not Allowed", 18); diff --git a/src/smol.c b/src/smol.c index 172a9cb..871bf7b 100644 --- a/src/smol.c +++ b/src/smol.c @@ -79,6 +79,7 @@ static void handle_request(SSL *ssl, char *req) { send_response(ssl, "400 Bad Request", "text/plain", "Bad Request", 11); return; } + printf("%s %s %s\n", path, method, proto); if (strcmp(method, "GET")) { send_response(ssl, "405 Method Not Allowed", "text/plain", "Method Not Allowed", 18);