fix(server): validate Content-Type by parsed media type instead of substring match (#2441)

This commit is contained in:
Felix Weinberger 2026-07-06 20:29:58 +01:00 • committed by GitHub
commit 561c6d8345
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

11
pnpm-lock.yaml generated
View file

@ -98,9 +98,6 @@ catalogs:
'@hono/node-server':
specifier: ^1.19.9
version: 1.19.11
content-type:
specifier: ^1.0.5
version: 1.0.5
cors:
specifier: ^2.8.5
version: 2.8.6
@ -126,6 +123,9 @@ catalogs:
ajv-formats:
specifier: ^3.0.1
version: 3.0.1
content-type:
specifier: ^1.0.5
version: 1.0.5
json-schema-typed:
specifier: ^8.0.2
version: 8.0.2
@ -1425,6 +1425,9 @@ importers:
packages/core-internal:
dependencies:
content-type:
specifier: catalog:runtimeShared
version: 1.0.5
json-schema-typed:
specifier: catalog:runtimeShared
version: 8.0.2
@ -1789,7 +1792,7 @@ importers:
packages/server-legacy:
dependencies:
content-type:
specifier: catalog:runtimeServerOnly
specifier: catalog:runtimeShared
version: 1.0.5
cors:
specifier: catalog:runtimeServerOnly