Also handle application/x-www-form-urlencoded as string body

This commit is contained in:
Stef Heyenrath
2018-03-08 11:00:19 +01:00
parent e18fffb661
commit 9b5a482b8d
2 changed files with 8 additions and 2 deletions

View File

@@ -10,7 +10,13 @@ namespace WireMock.Util
{
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)
{