Skip to content

Commit

Permalink
Fix custom header key in AuthLink(Overwrited in v3.1.0 merge)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangsihao committed Aug 3, 2020
1 parent 1356d61 commit 2899b4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/graphql/lib/src/link/auth/link_auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class AuthLink extends Link {
final String token = await getToken();
if (token != null) {
operation.setContext(<String, Map<String, String>>{
'headers': <String, String>{'Authorization': token}
'headers': <String, String>{headerKey: token}
});
}
} catch (error) {
Expand Down

0 comments on commit 2899b4c

Please sign in to comment.