Skip to content

Commit 8160711

Browse files
Update packages/config-yaml/src/validation.ts
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
1 parent ccd9d15 commit 8160711

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/config-yaml/src/validation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function validateConfigYaml(
4747

4848
if (model.requestOptions?.headers) {
4949
for (const [key, value] of Object.entries(model.requestOptions.headers)) {
50-
if (containsUnicode(value)) {
50+
if (containsUnicode(key) || containsUnicode(value)) {
5151
errors.push({
5252
fatal: true,
5353
message: `Model "${model.name}" has a request header "${key}" containing unicode characters. Request headers should only contain ASCII characters.`,

0 commit comments

Comments
 (0)