Showing
1 changed file
with
1 additions
and
1 deletions
@@ -139,7 +139,7 @@ class GetHttpClient { | @@ -139,7 +139,7 @@ class GetHttpClient { | ||
139 | url: uri, | 139 | url: uri, |
140 | headers: headers, | 140 | headers: headers, |
141 | bodyBytes: bodyStream, | 141 | bodyBytes: bodyStream, |
142 | - contentLength: bodyBytes.length, | 142 | + contentLength: bodyBytes?.length ?? 0, |
143 | followRedirects: followRedirects, | 143 | followRedirects: followRedirects, |
144 | maxRedirects: maxRedirects, | 144 | maxRedirects: maxRedirects, |
145 | decoder: decoder, | 145 | decoder: decoder, |
-
Please register or login to post a comment