Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions static-mock/handle_static_mock_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ func (sms *StaticMockService) getBodyFromHttpRequest(request *http.Request) inte
panic(err)
}

// Restore request.Body so it can be read again
request.Body = io.NopCloser(bytes.NewReader(bodyBytes))

var bodyJsonObj interface{}

if len(bodyBytes) == 0 {
Expand Down
Loading