Content-Type multipart/form-data header should also be proxied (#1296)

This commit is contained in:
Stef Heyenrath
2025-05-15 18:21:21 +02:00
committed by GitHub
parent baa33552e9
commit 61b6eb8752
4 changed files with 54 additions and 17 deletions

View File

@@ -2,7 +2,6 @@
using System.Net.Http;
using System.Net.Http.Headers;
using Stef.Validation;
namespace WireMock.Http;
@@ -16,8 +15,6 @@ internal static class StringContentHelper
/// <returns>StringContent</returns>
internal static StringContent Create(string content, MediaTypeHeaderValue? contentType)
{
Guard.NotNull(content);
var stringContent = new StringContent(content);
stringContent.Headers.ContentType = contentType;
return stringContent;