8000 queryParameters is overridden by BaseOption · Issue #1169 · cfug/dio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
queryParameters is overridden by BaseOption #1169
Closed
@narumi147

Description

@narumi147

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0