Closed
Description
New Issue Checklist
- I have searched for a similar issue in the project and found none
Issue Description and Steps
Similar to extra
and headers
, in Dio.get/post/download...
the queryParameters
should override BaseOption
, rather be overridden.
https://github.com/flutterchina/dio/blob/20506b496d41d7c2cc71d323e22634e99dc3ef21/dio/lib/src/options.dart#L285-L287
We should first add baseOpt.queryParameters
then baseOpt.queryParameters
.
var query = <String, dynamic>{};
query.addAll(baseOpt.queryParameters);
if (queryParameters != null) query.addAll(queryParameters);
Metadata
Metadata
Assignees
Labels
No labels