Skip to content

Commit 33886d2

Browse files
committed
Remove "boundary" on content-type for /identification
This is not a multipart request, and thus should not have boundary name set in the content-type header. This is an old 2015 copy paste-bug
1 parent 2eb4023 commit 33886d2

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

Digipost.Api.Client.Send/Actions/IdentificationAction.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ internal override HttpContent Content(IIdentification requestContent)
2020
var xmlMessage = Serialize(requestContent);
2121
var messageContent = new StringContent(xmlMessage);
2222

23-
var boundary = Guid.NewGuid().ToString();
2423
var mediaTypeHeaderValue = new MediaTypeHeaderValue(DigipostVersion.V8);
25-
mediaTypeHeaderValue.Parameters.Add(new NameValueWithParametersHeaderValue("boundary", boundary));
2624
messageContent.Headers.ContentType = mediaTypeHeaderValue;
2725

2826
return messageContent;

0 commit comments

Comments
 (0)