summaryrefslogtreecommitdiff
path: root/cfws.c
diff options
context:
space:
mode:
Diffstat (limited to 'cfws.c')
-rw-r--r--cfws.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cfws.c b/cfws.c
index 5776b49..f280fe4 100644
--- a/cfws.c
+++ b/cfws.c
@@ -69,7 +69,7 @@ static void handle_request(const struct http_request *req, int sockfd)
file_read(filepath, sockfd);
break;
case SERVE_METHOD_PHP:
- file_read_php(filepath, req->query_str, sockfd);
+ file_read_php(filepath, req, sockfd);
break;
case SERVE_METHOD_ERROR: {
const char *errmsg = "Content-Type: text/plain\r\n\r\nEpic fail";