Bugfix: send the headers in the http request