Update packages/config-yaml/src/validation.ts
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
parent
ccd9d15fda
commit
8160711097
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ export function validateConfigYaml(
|
|||
|
||||
if (model.requestOptions?.headers) {
|
||||
for (const [key, value] of Object.entries(model.requestOptions.headers)) {
|
||||
if (containsUnicode(value)) {
|
||||
if (containsUnicode(key) || containsUnicode(value)) {
|
||||
errors.push({
|
||||
fatal: true,
|
||||
message: `Model "${model.name}" has a request header "${key}" containing unicode characters. Request headers should only contain ASCII characters.`,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue