-
-
Notifications
You must be signed in to change notification settings - Fork 335
add 'user-agent' in HTTP header #179
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
Conversation
feross
left a comment
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.
This PR is also missing a test.
| var opts = { | ||
| url: u, | ||
| header: { | ||
| 'user-agent': self.client._userAgent || '' |
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 don't see where self.client._userAgent actually gets set. Did you forget to commit changes to client.js?
feross
left a comment
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 merge and fix the remaining issues in a followup commit.
| common.querystringStringify(params) | ||
| var opts = { | ||
| url: u, | ||
| header: { |
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.
Also, this should be headers.
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.
Sorry, I ignored it. Thank you for correction : )
|
8.1.0 |
webtorrent/webtorrent#962