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 2, 2024
1 parent d74d895 commit 18b0adb
Show file tree
Hide file tree
Showing 9 changed files with 1,206 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 18b0adb

Please sign in to comment.