mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-31 14:43:40 +02:00
Also handle application/x-www-form-urlencoded as string body
This commit is contained in:
@@ -10,7 +10,13 @@ namespace WireMock.Util
|
|||||||
{
|
{
|
||||||
internal static class BodyParser
|
internal static class BodyParser
|
||||||
{
|
{
|
||||||
private static readonly string[] TextContentTypes = { "text/", "application/xml", "application/javascript", "application/typescript", "application/xhtml+xml" };
|
private static readonly string[] TextContentTypes =
|
||||||
|
{
|
||||||
|
"text/",
|
||||||
|
"application/javascript", "application/typescript",
|
||||||
|
"application/xml", "application/xhtml+xml",
|
||||||
|
"application/x-www-form-urlencoded"
|
||||||
|
};
|
||||||
|
|
||||||
private static async Task<Tuple<string, Encoding>> ReadStringAsync(Stream stream)
|
private static async Task<Tuple<string, Encoding>> ReadStringAsync(Stream stream)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Description>Lightweight Http Mocking Server for .Net, inspired by WireMock from the Java landscape.</Description>
|
<Description>Lightweight Http Mocking Server for .Net, inspired by WireMock from the Java landscape.</Description>
|
||||||
<AssemblyTitle>WireMock.Net</AssemblyTitle>
|
<AssemblyTitle>WireMock.Net</AssemblyTitle>
|
||||||
<Version>1.0.3.4</Version>
|
<Version>1.0.3.5</Version>
|
||||||
<Authors>Alexandre Victoor;Stef Heyenrath</Authors>
|
<Authors>Alexandre Victoor;Stef Heyenrath</Authors>
|
||||||
<TargetFrameworks>net452;net46;netstandard1.3;netstandard2.0</TargetFrameworks>
|
<TargetFrameworks>net452;net46;netstandard1.3;netstandard2.0</TargetFrameworks>
|
||||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||||
|
|||||||
Reference in New Issue
Block a user