OkHttpManager icon indicating copy to clipboard operation
OkHttpManager copied to clipboard

OkHttpManager类中源码有误

Open longshiming opened this issue 8 years ago • 0 comments

在你的OkHttpManager类中buildRequestBody方法中

if (null != mType && null != mFile) { RequestBody requestBody = new RequestBody() { @Override public MediaType contentType() { return mType; } @Override public void writeTo(BufferedSink sink) throws IOException { sink = mSink; } }; builder.post(requestBody); return; }

此处的null !=mFile应为null !=mSink

longshiming avatar Apr 11 '16 08:04 longshiming