Skip to content

Commit

Permalink
Cleaned up commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Phillips authored and Brandon Phillips committed Apr 15, 2020
1 parent e68447e commit 24d057c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,13 @@ func sendToNewRelicInsights(c *cli.Context) {
g.Write(jsonValue)
g.Close()

// request, _ := http.NewRequest("POST", extendedUrl, bytes.NewBuffer(jsonValue))
request, _ := http.NewRequest("POST", extendedUrl, &byteBuffer)
request.Header.Set("Content-Type", "application/json")
request.Header.Set("Content-Encoding", "gzip")
request.Header.Set("X-Insert-Key", insertKey)
client := &http.Client{}
response, err := client.Do(request)
// response, err = http.Post("https://httpbin.org/post", "application/json", bytes.NewBuffer(jsonValue))

if err != nil {
fmt.Printf("The Http request failed with error %s\n", err)
} else {
Expand Down

0 comments on commit 24d057c

Please sign in to comment.