mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
add searchpairs
This commit is contained in:
parent
f599f28c33
commit
946b8d7086
2 changed files with 3 additions and 0 deletions
|
@ -159,6 +159,7 @@ struct HttpReq
|
||||||
char *search;
|
char *search;
|
||||||
int vermaj;
|
int vermaj;
|
||||||
int vermin;
|
int vermin;
|
||||||
|
HSPairs *searchpairs;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -130,6 +130,8 @@ hparsereq(HConnect *c, int timeout)
|
||||||
|
|
||||||
c->req.uri = uri;
|
c->req.uri = uri;
|
||||||
c->req.search = search;
|
c->req.search = search;
|
||||||
|
if(search)
|
||||||
|
c->req.searchpairs = hparsequery(c, hstrdup(c, search));
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue