fix the http libraroes implementation of promises, so tests pass