Skip to content

Commit 1b5c8ee

Browse files
committed
fix(rest): name the headers field in the send door's value refusal
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017xRBcVy4VXmkQjn2MGeaWk
1 parent 5ba07d1 commit 1b5c8ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/rest/src/email-routes.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function headersRefusal(headers: unknown): string | undefined {
149149
return 'Custom `headers` must be keyed by header field names: printable ASCII with no space, control character or colon.';
150150
}
151151
if (typeof value !== 'string' || /[\r\n]/.test(value)) {
152-
return `Custom header \`${name}\` must have a single-line string value.`;
152+
return `Custom \`headers\` value for \`${name}\` must be a single-line string.`;
153153
}
154154
if (SENDER_HEADER_NAMES.has(name.toLowerCase())) {
155155
return `Custom header \`${name}\` cannot be set: the sender is the deployment's configured sender.`;

0 commit comments

Comments
 (0)