-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
New Issue Checklist
- I have searched for a similar issue in the project and found none
dependencies:
flutter:
sdk: flutter
http: ^0.13.4
json_annotation: ^4.4.0
dio: ^4.0.4Issue Description and Steps
https://github.com/flutterchina/dio/blob/develop/dio/lib/src/options.dart#L545
The above code always does the encoding of query parameters by using + instead of spaces. The issue is, some servers do not understand the +, instead they use %20.
Tried to manually encode the query paramater value but then it ends up to duplicated encoding.
- How to prevent encoding or provive a Query Parameter encoder to support this case ?
// Current (Term=Hello World)
baseUrl/search?term=HELLO+WORLD
Expected (Term=Hello World)
// baseUrl/search?term=HELLO%20WORLD
gthvmt, neokree, ahmadhp1, vitomanu96, lucavenir and 3 more
Metadata
Metadata
Assignees
Labels
No labels