Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

returning template as bytes according to twisted.web.resource.render #82

Merged
merged 6 commits into from
Dec 31, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
returning template as bytes as expected by twisted.web.resource.render
  • Loading branch information
Italo Valcy committed Dec 30, 2024
commit 49e8bd642ed112a2c6df24075e4bde120a88a20a
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
Loading