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

Create UserAgent from Dictionary #16

Open
anthonycmain opened this issue Dec 20, 2019 · 1 comment
Open

Create UserAgent from Dictionary #16

anthonycmain opened this issue Dec 20, 2019 · 1 comment

Comments

@anthonycmain
Copy link

anthonycmain commented Dec 20, 2019

It would be great to be able to have a method to "append" a parameter to the UserAgent string as well.

E.g. Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.0 Mobile/14E304 Safari/602.1 MyParameter/1.0

@pke
Copy link

pke commented Sep 17, 2020

How about: getUserAgent(ua => ua + " MyParameter/1.0")

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

No branches or pull requests

2 participants