Skip to content

Commit

Permalink
fix http config schema validation
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed May 12, 2021
1 parent acf5073 commit 3513b24
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions src/core/server/http/http_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,6 @@ const configSchema = schema.object(
host: schema.string({
defaultValue: 'localhost',
hostname: true,
validate(value) {
if (value === '0') {
return 'value 0 is not a valid hostname (use "0.0.0.0" to bind to all interfaces)';
}
},
}),
maxPayload: schema.byteSize({
defaultValue: '1048576b',
Expand Down

0 comments on commit 3513b24

Please sign in to comment.