Closed manuelist closed 2 years ago
Hello is there a way to convert request headers to non array? Thanks in advance
My expected behavior is. x-authid: df3c6255-041f-4df0-86bb-f83504bfc10d
x-authid: df3c6255-041f-4df0-86bb-f83504bfc10d
What happening now in my flutter app is the headers is converting into array. x-authid: [df3c6255-041f-4df0-86bb-f83504bfc10d]
x-authid: [df3c6255-041f-4df0-86bb-f83504bfc10d]
Here is my sample code
GraphQLClient clientToQuery([String? accessToken]) { final httpLinks = HttpLink( server, defaultHeaders: <String, String>{ 'x-authid': 'df3c6255-041f-4df0-86bb-f83504bfc10d', }, ); return GraphQLClient( cache: GraphQLCache(store: HiveStore()), link: httpLinks, ); }
This looks unrelated to the client, because the header is managed by https://github.com/gql-dart/gql also you can do this type of question on the discord server
Hello is there a way to convert request headers to non array? Thanks in advance
My expected behavior is.
x-authid: df3c6255-041f-4df0-86bb-f83504bfc10d
What happening now in my flutter app is the headers is converting into array.
x-authid: [df3c6255-041f-4df0-86bb-f83504bfc10d]
Here is my sample code