Skip to content

Commit

Permalink
Merge pull request from GHSA-9p43-hj5j-96h5
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz authored Mar 5, 2024
1 parent 01fc057 commit b3ff23e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions esphome/dashboard/web_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,7 @@ async def get(self, configuration: str | None = None) -> None:
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:
Expand Down

0 comments on commit b3ff23e

Please sign in to comment.