Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Arturo Salvio
2020-12-31 11:23:52 -0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d511c5b47a4b949c0bc0afd812431cd6b449746f
d511c5b4
1 parent
33970ff1
FIX: Post headers in GraphQL (query & mutation)
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
lib/get_connect/connect.dart
lib/get_connect/connect.dart
View file @
d511c5b
...
...
@@ -299,8 +299,11 @@ class GetConnect extends GetConnectInterface {
Map
<
String
,
String
>
headers
,
})
async
{
try
{
final
res
=
await
post
(
_concatUrl
(
url
),
{
'query'
:
query
,
'variables'
:
variables
});
final
res
=
await
post
(
_concatUrl
(
url
),
{
'query'
:
query
,
'variables'
:
variables
},
headers:
headers
,
);
final
listError
=
res
.
body
[
'errors'
];
if
((
listError
is
List
)
&&
listError
.
isNotEmpty
)
{
...
...
@@ -333,7 +336,10 @@ class GetConnect extends GetConnectInterface {
})
async
{
try
{
final
res
=
await
post
(
_concatUrl
(
url
),
{
'query'
:
mutation
,
'variables'
:
variables
});
_concatUrl
(
url
),
{
'query'
:
mutation
,
'variables'
:
variables
},
headers:
headers
,
);
final
listError
=
res
.
body
[
'errors'
];
if
((
listError
is
List
)
&&
listError
.
isNotEmpty
)
{
...
...
Please
register
or
login
to post a comment