diff --git a/include/httpd.h b/include/httpd.h index 8ffe51e8..9789fba4 100644 --- a/include/httpd.h +++ b/include/httpd.h @@ -159,6 +159,7 @@ struct HttpReq char *search; int vermaj; int vermin; + HSPairs *searchpairs; }; /* diff --git a/src/libhttpd/parsereq.c b/src/libhttpd/parsereq.c index ce487c80..862d5338 100644 --- a/src/libhttpd/parsereq.c +++ b/src/libhttpd/parsereq.c @@ -130,6 +130,8 @@ hparsereq(HConnect *c, int timeout) c->req.uri = uri; c->req.search = search; + if(search) + c->req.searchpairs = hparsequery(c, hstrdup(c, search)); return 1; }