tadd searchpairs - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 946b8d7086d5e1aa97e19bac52fc1a416a56110e
(DIR) parent f599f28c339fdd6018d64e71a7d49d8c515c2cde
(HTM) Author: rsc <devnull@localhost>
Date: Sat, 21 Apr 2007 20:41:08 +0000
add searchpairs
Diffstat:
M include/httpd.h | 1 +
M src/libhttpd/parsereq.c | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/include/httpd.h b/include/httpd.h
t@@ -159,6 +159,7 @@ struct HttpReq
char *search;
int vermaj;
int vermin;
+ HSPairs *searchpairs;
};
/*
(DIR) diff --git a/src/libhttpd/parsereq.c b/src/libhttpd/parsereq.c
t@@ -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;
}