-
-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
366 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
# 1.6.2 (04 September 2024) | ||
- #1152 Update MappingConverter to correctly write the Matcher as C# code [bug] | ||
- #1163 Upgrade Aspire to version 8.2.0 [feature] | ||
- #1166 Also update IWireMockMiddlewareOptions when settings are updated via admin interface [bug] | ||
- #1151 MappingsToCSharpCode should use RegexMatcher when specified [bug] | ||
- #1164 WithParam not working. [bug] | ||
# 1.6.3 (07 September 2024) | ||
- #1165 Fix listen on AnyIP for url 0.0.0.0 | ||
- #1154 Listen on all ips [bug] | ||
|
||
The full release notes can be found here: https://github.com/WireMock-Net/WireMock.Net/blob/master/CHANGELOG.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/WireMock.Net.Abstractions/Models/IBodyDataExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright © WireMock.Net | ||
|
||
using WireMock.Types; | ||
|
||
// ReSharper disable once CheckNamespace | ||
namespace WireMock.Util; | ||
|
||
// ReSharper disable once InconsistentNaming | ||
public static class IBodyDataExtensions | ||
{ | ||
public static BodyType GetBodyType(this IBodyData bodyData) | ||
{ | ||
if (bodyData.DetectedBodyTypeFromContentType is not null and not BodyType.None) | ||
{ | ||
return bodyData.DetectedBodyTypeFromContentType.Value; | ||
} | ||
|
||
if (bodyData.DetectedBodyType is not null and not BodyType.None) | ||
{ | ||
return bodyData.DetectedBodyType.Value; | ||
} | ||
|
||
return BodyType.None; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.