Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow passing user-agent header #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matt-richardson
Copy link

We use TeamCitySharp in several projects (thanks!), and we have a need to add user-agent headers to our http requests, as part of our http traffic flow analysis.

This PR adds a default user-agent: TeamCitySharp/x.y.z, and allows customisation of the header, via the .UseUserAgent("xxx") method.

I added a test, but it's a "make sure it doesn't blow up" test, rather than checking it actually passes the header, as there doesn't appear to be any existing mechanism for testing what goes over the wire, only that we got the correct response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant