|
"WindowsPowerShell/{0}", PSVersionInfo.PSVersion); |
This should be just PowerShell and not WindowsPowerShell.
Steps to reproduce
$bingdings = [System.Reflection.BindingFlags]::NonPublic -bxor [System.Reflection.BindingFlags]::Static
[Microsoft.PowerShell.Commands.PSUserAgent].GetProperty('App',$bingdings).GetValue($null,$null)
Expected behavior
Actual behavior
Environment data
Name Value
---- -----
PSVersion 6.0.0-beta
PSEdition Core
GitCommitId v6.0.0-beta.7
OS Microsoft Windows 10.0.15063
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
and
Name Value
---- -----
PSVersion 6.0.0-beta
PSEdition Core
GitCommitId v6.0.0-beta.7
OS Linux 4.4.0-96-generic #119-Ubuntu SMP Tue Se...
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Note on changing this
There are several tests, like the one below, which will also need to be updated.
|
$jsonContent.headers.'User-Agent' | Should Match "WindowsPowerShell" |
PowerShell/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/PSUserAgent.cs
Line 116 in 1c921cd
This should be just
PowerShelland notWindowsPowerShell.Steps to reproduce
Expected behavior
Actual behavior
Environment data
and
Note on changing this
There are several tests, like the one below, which will also need to be updated.
PowerShell/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1
Line 466 in 1c921cd