Skip to content

Commit

Permalink
fix: RESTful API - HEAD request not supported on {version}/status a…
Browse files Browse the repository at this point in the history
…s mentioned in docs

fixes #2841
  • Loading branch information
RazCrimson committed Jun 18, 2024
1 parent 8c520e1 commit 69c3a94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions glances/outputs/glances_restful_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def _router(self):
router.add_api_route(
f'/api/{self.API_VERSION}/status',
status_code=status.HTTP_200_OK,
methods=['HEAD', 'GET'],
response_class=ORJSONResponse,
endpoint=self._api_status,
)
Expand Down

0 comments on commit 69c3a94

Please sign in to comment.