Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Ginger/GingerCoreNET/External/WireMock/WireMockAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ limitations under the License.
using Amdocs.Ginger.Common;
using Amdocs.Ginger.Common.External.Configurations;
using System;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Text.Json;
Expand Down Expand Up @@ -167,7 +168,7 @@ public async Task<string> CreateStubAsync(string stubMapping, string contentType
body = doc.RootElement.GetRawText();
}

var content = new StringContent(body, Encoding.UTF8, contentType);
var content = new StringContent(WebUtility.HtmlEncode(body), Encoding.UTF8, contentType);
HttpResponseMessage response = await client.PostAsync($"{NormalizeUrl(GingerCore.ValueExpression.PasswordCalculation(_baseUrl))}{MappingEndpoint}", content);
response.EnsureSuccessStatusCode();
return await response.Content.ReadAsStringAsync();
Expand Down
Loading