Skip to content

Commit

Permalink
For the internal unknown request body encoder, it encodes according t…
Browse files Browse the repository at this point in the history
…o the conventional request body.
  • Loading branch information
edoger committed Apr 2, 2021
1 parent 1baf6f1 commit 4761080
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,6 @@ func (r *request) makeBodyReader() (io.Reader, error) {
return bytes.NewReader(data), nil
}
}
// In theory, this error will never be returned.
return nil, fmt.Errorf("invalid request body encoder: %s", r.bodyEncoder)
}

switch body := r.body.(type) {
Expand Down

0 comments on commit 4761080

Please sign in to comment.