Skip to content

Commit fc00c85

Browse files
committed
fix bug
1 parent 229779b commit fc00c85

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/com/qiniu/resumableio/ResumableClient.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import com.qiniu.utils.InputStreamAt;
1010
import org.apache.http.HttpResponse;
1111
import org.apache.http.client.HttpClient;
12-
import org.apache.http.client.methods.HttpPost;
12+
import org.apache.http.client.methods.HttpRequestBase;
1313
import org.apache.http.entity.StringEntity;
1414
import org.json.JSONObject;
1515

@@ -27,11 +27,11 @@ public ResumableClient(HttpClient client, String uptoken) {
2727
}
2828

2929
@Override
30-
protected HttpResponse roundtrip(HttpPost httpPost) throws IOException {
30+
protected HttpResponse roundtrip(HttpRequestBase httpRequest) throws IOException {
3131
if (mUpToken != null) {
32-
httpPost.setHeader("Authorization", "UpToken " + mUpToken);
32+
httpRequest.setHeader("Authorization", "UpToken " + mUpToken);
3333
}
34-
return super.roundtrip(httpPost);
34+
return super.roundtrip(httpRequest);
3535
}
3636

3737
public ICancel[] putblock(final InputStreamAt input, final PutExtra extra, final PutRet putRet, final long offset, final JSONObjectRet callback) {

0 commit comments

Comments
 (0)