Skip to content

Commit 703f918

Browse files
committed
Changing fallback for content type to text/plain
1 parent 74ac9fa commit 703f918

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ServiceControl.Audit.Persistence.RavenDB/UnitOfWork/RavenAuditIngestionUnitOfWork.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public async Task RecordProcessedMessage(ProcessedMessage processedMessage, Read
3535
if (!body.IsEmpty)
3636
{
3737
await using var stream = new ReadOnlyStream(body);
38-
var contentType = processedMessage.Headers.GetValueOrDefault(Headers.ContentType, "text/xml");
38+
var contentType = processedMessage.Headers.GetValueOrDefault(Headers.ContentType, "text/plain");
3939

4040
await bodyStorage.Store(processedMessage.Id, contentType, body.Length, stream, cancellationToken);
4141
}

src/ServiceControl.Audit.Persistence.Tests/AuditTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ await IngestProcessedMessagesAudits(
8080
[Test]
8181
public async Task Can_roundtrip_message_body()
8282
{
83-
string expectedContentType = "text/xml";
83+
string expectedContentType = "text/plain";
8484
var unitOfWork = await StartAuditUnitOfWork(1);
8585

8686
var body = new byte[100];

0 commit comments

Comments
 (0)