Skip to content

Commit

Permalink
fixed variable name case
Browse files Browse the repository at this point in the history
  • Loading branch information
dzyanis committed Mar 16, 2022
1 parent 93633fb commit deb1b0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions provider/smsc/smsc.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ func (c *Smsc) Send(message sachet.Message) (err error) {
}

func (c *Smsc) SendOne(message sachet.Message, phoneNumber string) (err error) {
encoded_message := url.QueryEscape(message.Text)
encodedMessage := url.QueryEscape(message.Text)
smsURL := fmt.Sprintf("https://smsc.ru/sys/send.php?login=%s&psw=%s&phones=%s&sender=%s&fmt=0&mes=%s",
c.Login, c.Password, phoneNumber, message.From, encoded_message)
c.Login, c.Password, phoneNumber, message.From, encodedMessage)
var request *http.Request
var resp *http.Response
request, err = http.NewRequest("GET", smsURL, nil)
Expand Down

0 comments on commit deb1b0d

Please sign in to comment.