Merge pull request #743 from Al2Klimov/REST-Server-header

REST API: in the Server header, identify the software, not the machine
This commit is contained in:
Lord Hepipud 2024-08-19 10:16:20 +02:00 committed by GitHub
commit 5bbba96215
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -16,6 +16,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
* [#729](https://github.com/Icinga/icinga-powershell-framework/issues/729) Fixes `Update-Icinga` to print an error in case a component is not installed, instead of silently continue
* [#734](https://github.com/Icinga/icinga-powershell-framework/issues/734) Fixes a scenario on which a JEA service could become orphaned while manually stopping the Icinga for Windows service, without gracefully shutting down JEA
* [#735](https://github.com/Icinga/icinga-powershell-framework/pull/735) Fixes an issue with filter for EventLog events, which did not properly handle multiple event id includes, causing empty results
* [#743](https://github.com/Icinga/icinga-powershell-framework/pull/743) In the REST API response header `Server`, tell the software version, not the machine name (RFC 9110)
* [#745](https://github.com/Icinga/icinga-powershell-framework/pull/745) Fixes an issue for service provider with service names not interpreted correctly in case it contains `[]`
### Enhancements

View file

@ -39,8 +39,8 @@ function New-IcingaTCPClientRESTMessage()
(New-IcingaNewLine)
),
[string]::Format(
'Server: {0}{1}',
(Get-IcingaHostname -LowerCase $TRUE -AutoUseFQDN $TRUE),
'Server: IcingaForWindows/{0}{1}',
(Get-Module -Name icinga-powershell-framework).Version,
(New-IcingaNewLine)
),
[string]::Format(