Skip to content

Commit

Permalink
fix: Use Itoa() instead of string() for int conversion (#2663)
Browse files Browse the repository at this point in the history
closes #2662

Signed-off-by: Leonard Goodell <leonard.goodell@intel.com>
  • Loading branch information
lenny-goodell authored Aug 19, 2020
1 parent 3eb7664 commit 6df8530
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/support/scheduler/schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"fmt"
"io/ioutil"
"net/http"
"strconv"
"strings"
"sync"
"time"
Expand Down Expand Up @@ -553,7 +554,7 @@ func getHttpRequest(
req.Header.Set(ContentTypeKey, ContentTypeJsonValue)

if len(params) > 0 {
req.Header.Set(ContentLengthKey, string(len(params)))
req.Header.Set(ContentLengthKey, strconv.Itoa(len(params)))
}

return req, err
Expand Down

0 comments on commit 6df8530

Please sign in to comment.