-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Rationale
send and send_file build similar headers; deduplicating reduces drift and centralizes formatting logic.
Files
python_ntfy/_send_functions.py(or a new internal helper module)
Tasks
- Introduce a private helper (e.g.,
_build_headers(...)) to construct request headers - Use the helper from both
sendandsend_file - Keep behavior backward-compatible (same headers for same inputs)
Acceptance criteria
- Headers generated for equivalent inputs are identical to current behavior (except any explicitly approved changes)
- Tests pass with coverage unchanged or improved
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request