isoos / http_client

https://pub.dartlang.org/packages/http_client
BSD 3-Clause "New" or "Revised" License
13 stars 6 forks source link

Problem with Curl after Null-safety Migration #13

Closed andresruizdev closed 1 year ago

andresruizdev commented 1 year ago

After migrating to null-safety, Curl is no longer working due to an error that occurs when casting an old List type to List<String?>. This error is encountered while trying to use the Process.run() method to send a request.

var prf = Process.run(executable ?? 'curl', args as List<String>,
        stdoutEncoding: null);
isoos commented 1 year ago

Interested in a fix? I'll accept and review PRs.

andresruizdev commented 1 year ago

Yes, I'm. I'am working on some features for curl. Thanks

andresruizdev commented 1 year ago

Hello, @isoos I made a pull request to fix this issue and add some features to the CurlClient class