config(): disable service name in header (#13638)

This commit is contained in:
david-leifker 2025-05-28 15:11:08 -05:00 committed by GitHub
parent fea6e6ac4f
commit 8787892cbb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -373,7 +373,8 @@ spring:
protocol: ${KAFKA_PROPERTIES_SECURITY_PROTOCOL:PLAINTEXT}
# Useful to debug low-level Spring errors such as class version mismatches
#server:
server:
server-header: false
# error:
# include-message: always
# include-binding-errors: always

View File

@ -76,6 +76,7 @@ public class CommonApplicationConfig {
// HTTP Configuration
HttpConfiguration httpConfig = new HttpConfiguration();
httpConfig.setRequestHeaderSize(32768);
httpConfig.setSendServerVersion(false);
// See https://github.com/jetty/jetty.project/issues/11890
// Configure URI compliance to allow encoded slashes