Http: fix sending request body

This commit is contained in:
andig 2021-12-22 17:26:13 +01:00
parent 70996f51e5
commit c5e2d978e8

View file

@ -309,7 +309,7 @@ func (p *HTTP) IntGetter() func() (int64, error) {
// StringGetter sends string request
func (p *HTTP) StringGetter() func() (string, error) {
return func() (string, error) {
b, err := p.request()
b, err := p.request(p.body)
if err != nil {
return string(b), err
}