There's no problem, some of this code has been taken from net/http.