diff --git a/src/AS2MimeNode/AS2MimeNode.ts b/src/AS2MimeNode/AS2MimeNode.ts index 40371ec..1ff4845 100644 --- a/src/AS2MimeNode/AS2MimeNode.ts +++ b/src/AS2MimeNode/AS2MimeNode.ts @@ -12,7 +12,7 @@ import { hostname } from 'os' * @property {string|Buffer | Readable} [content] * @property {string} [boundary] * @property {string} [baseBoundary] - * @property {false|string} [boundaryPrefix='--LibAs2_'] + * @property {false|string} [boundaryPrefix='LibAs2'] * @property {string} [contentType] * @property {boolean|'inline'|'attachment'} [contentDisposition] * @property {string} [messageId] @@ -77,7 +77,7 @@ export class AS2MimeNode extends MimeNode { this.contentType = contentType this.boundaryPrefix = isNullOrUndefined(boundaryPrefix) && isNullOrUndefined(boundary) - ? '--LibAs2' + ? 'LibAs2' : boundaryPrefix === false || !isNullOrUndefined(boundary) ? '' : boundaryPrefix diff --git a/src/AS2MimeNode/Interfaces.ts b/src/AS2MimeNode/Interfaces.ts index 9037202..2baf6ba 100644 --- a/src/AS2MimeNode/Interfaces.ts +++ b/src/AS2MimeNode/Interfaces.ts @@ -12,7 +12,7 @@ export interface AS2MimeNodeOptions { boundary?: string /** Shared part of the unique multipart boundary. */ baseBoundary?: string - /** Prefix for the boundary; default is '--LibAs2_'. */ + /** Prefix for the boundary; default is 'LibAs2'. */ boundaryPrefix?: false | string /** Content type of the node; will be auto-calculated from the filename if not set. */ contentType?: string