ecphp/cas-bundle

Add a User-Agent header

Closed this issue · 1 comments

It would be nice to have a custom User-Agent header when doing requests.

Right now we have the default string: Symfony HttpClient/Curl, but it would be nice to have something like: CasBundleV1/Symfony HttpClient/Curl.

Custom User-Agent header string added by default when on dev environment and when using the default HTTP client which is the one from Symfony.

I chose to not add it by default, because as the HTTP client is abstracted and may be different for some users (Guzzle, Symfony HTTP Client, etc etc) there is no standard procedure for adding specific headers to them.

Added in 7ee5d5d