File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -469,8 +469,10 @@ class WdDio with DioMixin implements Dio {
469469 'PUT' ,
470470 path,
471471 data: Stream .fromIterable (data.map ((e) => [e])),
472- optionsHandler: (options) =>
473- options.headers? ['content-length' ] = data.length,
472+ optionsHandler: (options) {
473+ options.headers? ['content-length' ] = data.length;
474+ options.headers? ['content-type' ] = "application/octet-stream" ;
475+ },
474476 onSendProgress: onProgress,
475477 cancelToken: cancelToken,
476478 );
@@ -504,7 +506,10 @@ class WdDio with DioMixin implements Dio {
504506 'PUT' ,
505507 path,
506508 data: data,
507- optionsHandler: (options) => options.headers? ['content-length' ] = length,
509+ optionsHandler: (options) {
510+ options.headers? ['content-length' ] = length;
511+ options.headers? ['content-type' ] = "application/octet-stream" ;
512+ },
508513 onSendProgress: onProgress,
509514 cancelToken: cancelToken,
510515 );
You can’t perform that action at this time.
0 commit comments