Skip to content

Cannot remove Jetty HTTP server header for invalid request #1140

Open
@philippeu

Description

@philippeu

Hello,
it is possible to overwrite the jetty server header by setting the agent on server info (restlet 2.3.2)

getServerInfo().setAgent("toto");

it seems to work only for requests reaching the server resource.
If restlet received the following request

GET / TOTO/1.0

the following response is sent

HTTP/1.1 400 Unknown Version
Content-Length: 0
Connection: close
Server: Jetty(9.2.10.v20150310)

Is there a way to remove the HTTP server header for such case?
thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions