tiny reorganisation of the API request function
Merge branch 'no-buffer' of https://github.com/wp-stream/wp-stream into no-buffer