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

Include headers in request #3

Merged

Conversation

danielmichaels
Copy link
Contributor

@danielmichaels danielmichaels commented Jul 14, 2024

Thanks for making this package.

I self host my own ntfy server with basic auth in front. This requires me to set the Authorization: Basic <base64-encoded-string> header.

I was not able to get this working with gotfy as-is.

The Publisher struct exposes Headers which is great as I could set any headers for the request. Unfortunately, the Headers are not being referenced in SendMessage.

This PR adds support for including headers in the request.

@AnthonyHewins AnthonyHewins merged commit b6f3883 into AnthonyHewins:master Jul 14, 2024
@AnthonyHewins
Copy link
Owner

sorry that was a dumb mistake on my behalf to forget that. this repo's been basically just me using it and it has minimal tests, but maybe more people are using it than myself now soI should increase the health of it. See https://github.com/AnthonyHewins/gotfy/releases/tag/v0.0.10

@danielmichaels danielmichaels deleted the danielmichaels-patch-1 branch July 14, 2024 12:19
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.

2 participants