Skip to content

Commit

Permalink
use const
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaGolomozy committed Apr 15, 2024
1 parent 09ceabf commit e57d6dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func SendRequest(Bulk *Bulk) int {
for Attempt := 1; uint(Attempt) <= HTTPSendRetryCount; Attempt++ {
DebugLogger.Println("About to send bulk to Coralogix server. Attempt number:", Attempt)

request, err := http.NewRequest("POST", LogURL, bytes.NewBuffer(Bulk.ToJSON()))
request, err := http.NewRequest(http.MethodPost, LogURL, bytes.NewBuffer(Bulk.ToJSON()))
if err != nil {
DebugLogger.Println("Can't create HTTP request:", err)
continue
Expand Down

0 comments on commit e57d6dd

Please sign in to comment.