-
Notifications
You must be signed in to change notification settings - Fork 41
Make User-Agent configurable #171
base: dev
Are you sure you want to change the base?
Conversation
Why do you need it? |
Well, I can think of 2 good reasons:
I (kind of) compare it to the functionality that tools like wget and curl provide. |
Looking from the browser perspective - browsers typically do not allow setting the
|
Some extra food for thought:
|
@MathyV I am still on a fence here but before this can be merged you need to sign the cla |
I already signed the cla, dunno why it is not showing as such. |
OK - closing and reopening the PR fixed the CLA label |
I guess there is no harm in taking it especially that the setting is only exposed on the config... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make sure that tests compile and pass.
@@ -26,7 +25,6 @@ namespace signalr | |||
private: | |||
const web::uri m_url; | |||
web::http::http_request m_request; | |||
utility::string_t m_user_agent_string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need to fix this test since you removed this method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I meant to put this comment on this line: https://github.com/SignalR/SignalR-Client-Cpp/pull/171/files/4c93b793d7617af9f89eb862e3312a04097cc067#diff-5c7754f6ce7e6dd559ff3760f615595cL17)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll check it, overlooked the tests
@MathyV Are you still interested in pursuing this change? Thanks. |
Currently I'm on other projects so I'm not actively using your library. I'll check if I can find some time to fix the test but currently I have no need for it. |
No description provided.