Skip to content

Commit b4da7ab

Browse files
committed
feat!: Remove XHR.SendBody - just call Send(body)
1 parent c938091 commit b4da7ab

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

internal/html/xml_http_request.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ type XmlHttpRequest interface {
3939
Open(string, string, ...RequestOption)
4040

4141
Send(body io.Reader) error
42-
// Deprecated: Call Send instead.
43-
SendBody(body io.Reader) error
4442
Status() int
4543
StatusText() string
4644
ResponseText() string

internal/html/xml_http_request_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func (s *XMLHTTPRequestTestSuite) TestFormdataEncoding() {
135135
formData.Append("key1", "Value%42")
136136
formData.Append("key2", "Value&=42")
137137
formData.Append("key3", "International? æøå")
138-
s.xhr.SendBody(formData.GetReader())
138+
s.xhr.Send(formData.GetReader())
139139
s.Expect(s.reqErr).ToNot(HaveOccurred())
140140
s.Expect(s.actualMethod).To(Equal("POST"))
141141
actualReqContentType := s.actualHeader.Get("Content-Type")

0 commit comments

Comments
 (0)