Fix #1524 : API search query is discarded with GET method