Showing
1 changed file
with
9 additions
and
3 deletions
| @@ -299,8 +299,11 @@ class GetConnect extends GetConnectInterface { | @@ -299,8 +299,11 @@ class GetConnect extends GetConnectInterface { | ||
| 299 | Map<String, String> headers, | 299 | Map<String, String> headers, |
| 300 | }) async { | 300 | }) async { |
| 301 | try { | 301 | try { |
| 302 | - final res = | ||
| 303 | - await post(_concatUrl(url), {'query': query, 'variables': variables}); | 302 | + final res = await post( |
| 303 | + _concatUrl(url), | ||
| 304 | + {'query': query, 'variables': variables}, | ||
| 305 | + headers: headers, | ||
| 306 | + ); | ||
| 304 | 307 | ||
| 305 | final listError = res.body['errors']; | 308 | final listError = res.body['errors']; |
| 306 | if ((listError is List) && listError.isNotEmpty) { | 309 | if ((listError is List) && listError.isNotEmpty) { |
| @@ -333,7 +336,10 @@ class GetConnect extends GetConnectInterface { | @@ -333,7 +336,10 @@ class GetConnect extends GetConnectInterface { | ||
| 333 | }) async { | 336 | }) async { |
| 334 | try { | 337 | try { |
| 335 | final res = await post( | 338 | final res = await post( |
| 336 | - _concatUrl(url), {'query': mutation, 'variables': variables}); | 339 | + _concatUrl(url), |
| 340 | + {'query': mutation, 'variables': variables}, | ||
| 341 | + headers: headers, | ||
| 342 | + ); | ||
| 337 | 343 | ||
| 338 | final listError = res.body['errors']; | 344 | final listError = res.body['errors']; |
| 339 | if ((listError is List) && listError.isNotEmpty) { | 345 | if ((listError is List) && listError.isNotEmpty) { |
-
Please register or login to post a comment