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

naettInit or naettOption for user agent? #15

Closed
hrydgard opened this issue Jul 21, 2023 · 1 comment · Fixed by #17
Closed

naettInit or naettOption for user agent? #15

hrydgard opened this issue Jul 21, 2023 · 1 comment · Fixed by #17

Comments

@hrydgard
Copy link
Contributor

hrydgard commented Jul 21, 2023

I don't have access to my git version as a preprocessor variable that I can pass into naett in the build, but I do have it as a const char *. So I'd like to set a useragent based on it at runtime, either as a parameter for naettInit, or simply as a naettOption for each request (or ability to leave it out altogether so you can just set it with naettHeader).

I'm happy to do a PR, though it would probably be quicker for you to do it.

@hrydgard
Copy link
Contributor Author

I went ahead and made a PR, #17.

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 a pull request may close this issue.

1 participant