fix problem with the end of http response header
remove unnecessary libraries imports