Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Commit

Permalink
exclude from is set to empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
chweez committed Jan 18, 2018
1 parent a4696bf commit 4b97046
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sms/sms.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ func (service Service) Send(from, to, message string) (*SendMessageResponse, err
values := url.Values{}
values.Set("username", service.Username)
values.Set("to", to)
values.Set("from", from)
values.Set("message", message)
if from != "" {
// set from = "" to avoid this
values.Set("from", from)
}

url := util.GetSmsURL(service.Env)
headers := make(map[string]string)
Expand Down

0 comments on commit 4b97046

Please sign in to comment.