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

Not possible to set headers on a SendEmailRequest #98

Open
Mange opened this issue Apr 17, 2023 · 0 comments
Open

Not possible to set headers on a SendEmailRequest #98

Mange opened this issue Apr 17, 2023 · 0 comments

Comments

@Mange
Copy link

Mange commented Apr 17, 2023

The SendEmailRequest class accepts a headers: option, but the value provided will always be overwritten with an empty hash. See line 10 below:

def initialize(opts)
@message = opts.delete_if { |field| invalid_field?(field) }
@message[:attachments] = {}
@message[:headers] = {}
end

Is this a typo for ||=?

For now I'll work around it by modifying the returned object directly.

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

No branches or pull requests

1 participant