api/http: Fix compiler warning (closes #266)