Remove bugs when reading HTTP files