Skip to content

Conversation

@EdwinLove
Copy link

I came across a problem when using multiple stubbed requests each with a body in that the body was contained in a reader which was read out on the first round trip and so had no content on a subsequent round trip.

This pull request fixes this by using a byte array instead of reader to hold the stubbed request body, and refreshing its contents with each pass of stubForRequest

Edwin Love added 2 commits August 28, 2019 13:36
This allows multiple stubbed request with bodies to be used as the io.Reader
was being emptied on the first pass so was empty next time around
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant