fixed EOF error due to https request