Add optional sorting clause to Q_ITEMS

This commit is contained in:
Julien BLACHE
2010-04-24 10:20:26 +02:00
parent 4dc8f11887
commit dc95a04562
4 changed files with 31 additions and 4 deletions

View File

@@ -891,6 +891,8 @@ get_query_params(struct evkeyvalq *query, struct query_params *qp)
qp->idx_type = I_SUB;
qp->sort = S_NONE;
param = evhttp_find_header(query, "query");
if (!param)
param = evhttp_find_header(query, "filter");