Skip to content

OkHttpManager类中源码有误 #1

Description

@longshiming

在你的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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions