Skip to content

Commit

Permalink
computers-are-fast
Browse files Browse the repository at this point in the history
  • Loading branch information
thundergolfer committed Jul 3, 2024
1 parent d74d895 commit 1963a30
Show file tree
Hide file tree
Showing 10 changed files with 1,275 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def check_for_spam(email_bytes: bytes) -> bool:
[str(component) for component in config.spam_detect_api_addr]
)

req = urllib.request.Request(f"http://{spam_detect_api_url}")
req.add_header("Content-Type", "application/json; charset=utf-8")
data = json.dumps(body)
data_b = data.encode("utf-8")
Expand Down
Loading

0 comments on commit 1963a30

Please sign in to comment.