-
Notifications
You must be signed in to change notification settings - Fork 567
Closed
Description
- Framework version: 1.2
- Implementations: Jersey
Scenario
I am trying to retrieve the header from the original request using the @HeaderParam("Referer")
annotation e.g
@PUT
@Path("{url}")
@Produces("application/json")
public Response doSomething(@HeaderParam("Referer") String referer) throws Exception {
logger.info("Referer: " + referer);
}
Expected behavior
The logger should log the value of the referer
header that was passed when calling the endpoint
Actual behavior
The log entry states
[main] INFO LambdaHandler - Referer: null
Steps to reproduce
Create an endpoint according to the snippet in the "use case" section, and then call the endpoint by passing Referer
header on the request.