Fix http request handler