Look for a query or filter parameter in DAAP queries

The filter is passed in the query parameter if it's a search, but if it's
a browse it's in the filter parameter.
This commit is contained in:
Julien BLACHE 2009-06-02 16:32:09 +02:00
parent 7642b1c6d7
commit 28350ae9a6
1 changed files with 3 additions and 0 deletions

View File

@ -621,6 +621,9 @@ get_query_params(struct evkeyvalq *query, DBQUERYINFO *qi)
qi->index_type = indexTypeSub; qi->index_type = indexTypeSub;
param = evhttp_find_header(query, "query"); param = evhttp_find_header(query, "query");
if (!param)
param = evhttp_find_header(query, "filter");
if (param) if (param)
{ {
DPRINTF(E_DBG, L_DAAP, "DAAP browse query filter: %s\n", param); DPRINTF(E_DBG, L_DAAP, "DAAP browse query filter: %s\n", param);