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

Remove response body from subscriber delete #19

Merged
merged 1 commit into from
Nov 9, 2023
Merged

Remove response body from subscriber delete #19

merged 1 commit into from
Nov 9, 2023

Conversation

sarajuhosova
Copy link
Contributor

Running Subscribers.Delete successfully deleted the entry but threw an error.

The issue was cause by Line 203 in client.go, because we were feeding the rootSubscriber into the Do function (and thus it not being nil).
According to the MailerLite Docs, the DELETE operation shouldn't have a request / response body, so I decided to fix the issue by removing them from the Delete function itself.

Additionally, I've fixed the test to catch this behaviour.

@robgordon89
Copy link
Contributor

thankyou 👍

@robgordon89 robgordon89 merged commit f910774 into mailerlite:main Nov 9, 2023
3 checks passed
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