-
-
Notifications
You must be signed in to change notification settings - Fork 202
Description
Hi everyone,
I'm currently working on a project using Jooby with the Jetty server. We encountered an issue where some HTTP headers were being lost after switching to use JettyServer explicitly. The issue started after updating the main method in App.java to the following:
public static void main(String[] args) {
JettyServer jetty = new JettyServer();
Jooby.runApp(args, jetty, List.of(Router::new));
log.info("App started");
}Before introducing JettyServer, headers were being passed and received correctly. After this change, certain headers (such as X-Forwarded-*) were no longer present in the request context.
This may point to a problem in the Jetty integration or in how headers are handled or propagated when using the JettyServer constructor directly.
Please advise if additional configuration is needed, or if this is a potential bug in the Jooby-Jetty integration.
Any help or guidance would be greatly appreciated. Thank you in advance!
Best regards,
Kleyvert Martínez.