esvapi: fix compile error on LDC 1.33.0
This commit is contained in:
parent
7eb179255f
commit
a2be024c45
1 changed files with 3 additions and 1 deletions
4
esvapi.d
4
esvapi.d
|
@ -330,9 +330,11 @@ class ESVApi
|
|||
|
||||
JSONValue
|
||||
makeQuery(long page)
|
||||
=> parseJSON(makeRequest("search/?page-size=100"
|
||||
{
|
||||
return parseJSON(makeRequest("search/?page-size=100"
|
||||
~ "&page=" ~ page.to!string()
|
||||
~ "&q=" ~ query.tr(" ", "+")));
|
||||
}
|
||||
|
||||
pages ~= makeQuery(1);
|
||||
if (pages[0]["total_pages"].integer == 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue