Skip to content

Commit

Permalink
Remove content
Browse files Browse the repository at this point in the history
  • Loading branch information
Ndiritu committed Dec 9, 2024
1 parent 1241af8 commit ab60655
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -902,10 +902,8 @@ public long contentLength() throws IOException {

@Override
public void writeTo(@Nonnull BufferedSink sink) throws IOException {
// stored in variable before writing to the sink due to
// available()'s definition
long contentLength = contentLength();
if (contentLength() > 0) {
if (contentLength > 0) {
requestInfo.content.mark((int) contentLength);
}
sink.writeAll(Okio.source(requestInfo.content));
Expand Down

0 comments on commit ab60655

Please sign in to comment.