Skip to content

Commit

Permalink
fixes #2051
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Kazarin committed Nov 10, 2023
1 parent e0e2431 commit 309adcd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion providers/dns/regru/internal/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"io"
"net/http"
"net/url"
"strconv"
"strings"
"time"

Expand Down Expand Up @@ -97,7 +98,7 @@ func (c Client) doRequest(ctx context.Context, request any, fragments ...string)
}

req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
req.Header.Add("Content-Length", fmt.Sprintf("%d", len(postDataEncoded)))
req.Header.Add("Content-Length", strconv.Itoa(len(postDataEncoded)))

resp, err := c.HTTPClient.Do(req)
if err != nil {
Expand Down

0 comments on commit 309adcd

Please sign in to comment.