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