Skip to content

Commit

Permalink
Update client.go
Browse files Browse the repository at this point in the history
  • Loading branch information
AsabuHere authored Oct 16, 2023
1 parent c5e5b6e commit 685aa3d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,10 @@ func (c *Client) doWithErr(req *http.Request) (*http.Response, error) {
// SendRequest verifies, constructs, and authorizes an HTTP request.
func (c *Client) SendRequest(method string, rawURL string, data url.Values,
headers map[string]interface{}) (*http.Response, error) {
modRawURL := "https://preview.messaging.twilio.com" + rawURL


contentType := extractContentTypeHeader(headers)

u, err := url.Parse(modRawURL)
u, err := url.Parse(rawURL)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -189,4 +188,4 @@ func (c *Client) SetAccountSid(sid string) {
// Returns the Account SID.
func (c *Client) AccountSid() string {
return c.accountSid
}
}

0 comments on commit 685aa3d

Please sign in to comment.