Skip to content

Add retention Discord User-Agent - #13

Open
cmyui wants to merge 1 commit into
masterfrom
retention-discord-user-agent
Open

Add retention Discord User-Agent#13
cmyui wants to merge 1 commit into
masterfrom
retention-discord-user-agent

Conversation

@cmyui

@cmyui cmyui commented Jul 3, 2026

Copy link
Copy Markdown
Member

Summary

  • add an explicit User-Agent header to the retention Discord webhook request
  • assert the header in the webhook unit test

Context

The manual retention run succeeded, but Discord returned HTTP Error 403: Forbidden for the Python urllib request. The backup job uses curl, which sends a User-Agent by default; this makes the retention webhook request behave similarly.

Verification

  • ./venv/bin/python -m unittest -v
  • pre-commit run --files backup_retention_policy.py test_backup_retention_policy.py
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant