We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1241af8 commit 2bf7173Copy full SHA for 2bf7173
components/http/okHttp/src/main/java/com/microsoft/kiota/http/OkHttpRequestAdapter.java
@@ -902,10 +902,8 @@ public long contentLength() throws IOException {
902
903
@Override
904
public void writeTo(@Nonnull BufferedSink sink) throws IOException {
905
- // stored in variable before writing to the sink due to
906
- // available()'s definition
907
long contentLength = contentLength();
908
- if (contentLength() > 0) {
+ if (contentLength > 0) {
909
requestInfo.content.mark((int) contentLength);
910
}
911
sink.writeAll(Okio.source(requestInfo.content));
0 commit comments