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

This commit is contained in:
Jesse Hills 2024-03-06 08:09:45 +13:00
parent 63cce916e2
commit 37d2b3c797
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A

View file

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