Skip to content

Commit

Permalink
returning template as bytes as expected by twisted.web.resource.render
Browse files Browse the repository at this point in the history
  • Loading branch information
Italo Valcy committed Dec 30, 2024
1 parent ee5c6da commit 49e8bd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion honeypots/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def check_bytes(string: Any) -> str:

def load_template(filename: str) -> str:
file_path = Path(__file__).parent / "data" / filename
return file_path.read_text()
return file_path.read_bytes()


def get_headers_and_ip_from_request(request, options):
Expand Down

0 comments on commit 49e8bd6

Please sign in to comment.