Using http_poller on an api that does not end with a newline

I'm trying to query the Unifi API but no matter what I did nothing was going through until I tested a few different API's and noticed right away that when querying the Unifi API the reply did not end with a newline. This seems to mean that the http_poller never stops waiting for more data and that in the end nothing is sent through.

Is there some trickery to get this to work?