Skip to content

Commit

Permalink
set explicit method to POST
Browse files Browse the repository at this point in the history
  • Loading branch information
blind-oracle committed May 24, 2023
1 parent b1e9c98 commit 1166821
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.9.0
1.9.1
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"io/ioutil"
"os"
"time"

"github.com/pkg/errors"
Expand Down Expand Up @@ -77,7 +77,7 @@ func configParse(b []byte) (*config, error) {
}

func configLoad(file string) (*config, error) {
y, err := ioutil.ReadFile(file)
y, err := os.ReadFile(file)
if err != nil {
return nil, errors.Wrap(err, "Unable to read config")
}
Expand Down
1 change: 1 addition & 0 deletions processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ func (p *processor) send(clientIP net.Addr, reqID uuid.UUID, tenant string, wr *
req.Header.SetBytesV("Authorization", p.auth.egressHeader)
}

req.Header.SetMethod(fh.MethodPost)
req.SetRequestURI(p.cfg.Target)
req.SetBody(buf)

Expand Down

0 comments on commit 1166821

Please sign in to comment.