You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am wondering if it would possible to add an option to modify the User-Agent used. By default, it is set to Ruby WinRM Client in https://github.com/WinRb/WinRM/blob/master/lib/winrm/http/transport.rb#L28.
The only correct way to redefine it entirely (and to avoid the ruby and library version being included in the User-Agent) is to use the default_header options like this:
HTTPClient.new(default_header: {"User-Agent":"Just another User-Agent"})
I am not familiar with ruby programming, but, if no one is keen to implement it, I could give it a try.
Cheers,
The text was updated successfully, but these errors were encountered:
Hello,
I am wondering if it would possible to add an option to modify the User-Agent used. By default, it is set to
Ruby WinRM Client
in https://github.com/WinRb/WinRM/blob/master/lib/winrm/http/transport.rb#L28.The only correct way to redefine it entirely (and to avoid the ruby and library version being included in the User-Agent) is to use the
default_header
options like this:I am not familiar with ruby programming, but, if no one is keen to implement it, I could give it a try.
Cheers,
The text was updated successfully, but these errors were encountered: