Fix bug in http.