Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public async Task RecordProcessedMessage(ProcessedMessage processedMessage, Read
if (!body.IsEmpty)
{
await using var stream = new ReadOnlyStream(body);
var contentType = processedMessage.Headers.GetValueOrDefault(Headers.ContentType, "text/xml");
var contentType = processedMessage.Headers.GetValueOrDefault(Headers.ContentType, "text/plain");

await bodyStorage.Store(processedMessage.Id, contentType, body.Length, stream, cancellationToken);
}
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceControl.Audit.Persistence.Tests/AuditTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ await IngestProcessedMessagesAudits(
[Test]
public async Task Can_roundtrip_message_body()
{
string expectedContentType = "text/xml";
string expectedContentType = "text/plain";
var unitOfWork = await StartAuditUnitOfWork(1);

var body = new byte[100];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public async ValueTask StoreAuditMessageBody(ReadOnlyMemory<byte> body, Processe
return;
}

var contentType = GetContentType(processedMessage.Headers, "text/xml");
var contentType = GetContentType(processedMessage.Headers, "text/plain");
processedMessage.MessageMetadata.Add("ContentType", contentType);

var stored = await TryStoreBody(body, processedMessage, bodySize, contentType, cancellationToken);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public async Task Should_store_body_in_metadata_when_below_large_object_heap_and
[Headers.MessageId] = "someid",
["ServiceControl.Retry.UniqueMessageId"] = "someid",
[Headers.ProcessingEndpoint] = "someendpoint",
[Headers.ContentType] = "text/xml"
[Headers.ContentType] = "text/plain"
};

var message = new ProcessedMessage(headers, metadata);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public Task RecordFailedProcessingAttempt(
List<FailedMessage.FailureGroup> groups)
{
var uniqueMessageId = context.Headers.UniqueId();
var contentType = GetContentType(context.Headers, "text/xml");
var contentType = GetContentType(context.Headers, "text/plain");
var bodySize = context.Body.Length;

processingAttempt.MessageMetadata.Add("ContentType", contentType);
Expand Down