Describe the bug
I was trying to get an endpoint with int parameter:
final response =
await http.get("$baseUrl/weather".toUri(), params: {'id': 1});
I was wondering why id: 1 is not received on the server. After some investigation I realized that the parameter values are included in the requet only if they are string:
final response =
await http.get("$baseUrl/weather".toUri(), params: {'id': '1'});
Expected behavior
I expect the parameters to be included even when they are not string:
final response =
await http.get("$baseUrl/weather".toUri(), params: {'id': 1});
Describe the bug I was trying to get an endpoint with int parameter:
I was wondering why
id: 1
is not received on the server. After some investigation I realized that the parameter values are included in the requet only if they are string:Expected behavior I expect the parameters to be included even when they are not string:
Please complete the following information
http_interceptor
Version 1.0.1