File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,6 @@ class IOClient extends BaseClient {
31
31
ioRequest
32
32
..followRedirects = context['io.followRedirects' ] ?? true
33
33
..maxRedirects = context['io.maxRedirects' ] ?? 5
34
- ..contentLength = request.contentLength == null
35
- ? - 1
36
- : request.contentLength
37
34
..persistentConnection = context['io.persistentConnection' ] ?? true ;
38
35
request.headers.forEach ((name, value) {
39
36
ioRequest.headers.set (name, value);
Original file line number Diff line number Diff line change @@ -330,6 +330,7 @@ void main() {
330
330
'method' : 'DELETE' ,
331
331
'path' : '/' ,
332
332
'headers' : {
333
+ 'content-length' : ['0' ],
333
334
'user-agent' : [userAgent ()],
334
335
'x-random-header' : ['Value' ],
335
336
'x-other-header' : ['Other Value' ]
You can’t perform that action at this time.
0 commit comments