Fix uploading from http.

Change-Id: Id64a4ea99c5d64309f61a46a04dfc8949b76d788