Fixed http.request function.