Fix function signature, use default random boundary (#3422)
Fixes the function signature of `parseMultipartResponse` and uses the default random boundary when creating a new multipart response.
This commit is contained in:
parent
002fed3cb9
commit
ed6d964e5d
2 changed files with 14 additions and 21 deletions
|
|
@ -35,7 +35,7 @@ func Test_Multipart(t *testing.T) {
|
|||
assert.NoError(t, err)
|
||||
defer resp.Body.Close()
|
||||
// contentLength is always 0, since there's no Content-Length header on the multipart part.
|
||||
err, _, reader := parseMultipartResponse(r, resp, 1000)
|
||||
_, reader, err := parseMultipartResponse(r, resp, 1000)
|
||||
assert.NoError(t, err)
|
||||
gotResponse, err := io.ReadAll(reader)
|
||||
assert.NoError(t, err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue