diff --git a/Tool/SystemTestingTools/Internal/HttpCallInterceptor.cs b/Tool/SystemTestingTools/Internal/HttpCallInterceptor.cs index a1fc6f4..2705e97 100644 --- a/Tool/SystemTestingTools/Internal/HttpCallInterceptor.cs +++ b/Tool/SystemTestingTools/Internal/HttpCallInterceptor.cs @@ -132,7 +132,11 @@ private static async Task FindStub(HttpRequestMessage reque if (match.Exception != null) throw match.Exception; - return await match.Response.Clone(); // we clone because if the response is used more than one time, the content stream has been read and can't be read again + var clonedResponse = await match.Response.Clone(); // we clone because if the response is used more than one time, the content stream has been read and can't be read again + var clonedRequest = await request.Clone(); + + clonedResponse.RequestMessage = clonedRequest; + return clonedResponse; } } }