Skip to content

Commit 5bbba96

Browse files
authored
Merge pull request #743 from Al2Klimov/REST-Server-header
REST API: in the Server header, identify the software, not the machine
2 parents fa88a22 + 4dbb128 commit 5bbba96

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/100-General/10-Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
1616
* [#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
1717
* [#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
1818
* [#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
19+
* [#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)
1920
* [#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 `[]`
2021

2122
### Enhancements

lib/webserver/New-IcingaTCPClientRESTMessage.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ function New-IcingaTCPClientRESTMessage()
3939
(New-IcingaNewLine)
4040
),
4141
[string]::Format(
42-
'Server: {0}{1}',
43-
(Get-IcingaHostname -LowerCase $TRUE -AutoUseFQDN $TRUE),
42+
'Server: IcingaForWindows/{0}{1}',
43+
(Get-Module -Name icinga-powershell-framework).Version,
4444
(New-IcingaNewLine)
4545
),
4646
[string]::Format(

0 commit comments

Comments
 (0)