Http: fix sending request body
This commit is contained in:
parent
70996f51e5
commit
c5e2d978e8
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue