wrong if statement

Signed-off-by: Ah-Lun Tang <tang@ahlun.be>
curloptions to fetch data from datahub

Signed-off-by: Ah-Lun Tang <tang@ahlun.be>