graphql-client
graphql-client copied to clipboard
Make UserAgent request header optional
As per title: Make UserAgent request header optional. Or even opt-in. For a lot of projects it's redundant and it can interfere with multi threaded applications where the HttpClient is shared. The Add() will cause a race condition error.
I've added the requested changes. :) Do you think the function wrapper is needed? I have not so much experience with them so I'm not entirely sure if the current implementation is correct.
function wrapper?
It was a bit late, I ment the delegate around the option. 🙉 Anyway this current implementation works as intended.
Conflicts 😕
@KirovAir pls rebase on current master
Done!
closing in favor of #542