Fixed http refactor.