fix bug.
fine tune for http download.
merge from dev.

Signed-off-by: qijiang.guo <qijiang.guo@gmail.com>