Merge pull request from GHSA-9p43-hj5j-96h5

This commit is contained in:
Jesse Hills 2024-03-06 08:09:45 +13:00 committed by GitHub
parent 01fc0578bd
commit b3ff23ec76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -820,6 +820,7 @@ class EditRequestHandler(BaseHandler):
None, self._read_file, filename, configuration
)
if content is not None:
self.set_header("Content-Type", "application/yaml")
self.write(content)
def _read_file(self, filename: str, configuration: str) -> bytes | None: