Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefH committed Jul 29, 2022
1 parent e7754d1 commit 39a3a20
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/WireMock.Net/Proxy/ProxyHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ public ProxyHelper(WireMockServerSettings settings)
IRequestMessage requestMessage,
string url)
{
Guard.NotNull(client, nameof(client));
Guard.NotNull(requestMessage, nameof(requestMessage));
Guard.NotNull(url, nameof(url));
Guard.NotNull(client);
Guard.NotNull(requestMessage);
Guard.NotNull(url);

var originalUri = new Uri(requestMessage.Url);
var requiredUri = new Uri(url);
Expand Down Expand Up @@ -86,7 +86,7 @@ private IMapping ToMapping(ProxyAndRecordSettings proxyAndRecordSettings, IReque
}
});

var throwExceptionWhenMatcherFails = _settings.ThrowExceptionWhenMatcherFails == true;
bool throwExceptionWhenMatcherFails = _settings.ThrowExceptionWhenMatcherFails == true;
switch (requestMessage.BodyData?.DetectedBodyType)
{
case BodyType.Json:
Expand All @@ -113,7 +113,7 @@ private IMapping ToMapping(ProxyAndRecordSettings proxyAndRecordSettings, IReque
settings: _settings,
request,
response,
priority: WireMockConstants.ProxyPriority, // was 0
priority: WireMockConstants.ProxyPriority, // This was 0
scenario: null,
executionConditionState: null,
nextState: null,
Expand Down

0 comments on commit 39a3a20

Please sign in to comment.