fix bug in HttpUpload.java